[TW5] Beginner questions

124 views
Skip to first unread message

Sven

unread,
Aug 31, 2016, 3:53:19 AM8/31/16
to tiddl...@googlegroups.com
Hello,
I just started using TW 5 and I've got some questions for which I was not able to find an answer:
I'm using TW version 5.1.11 on Windows.

1) New Journal template.
When I click "new journal here" on a tiddly I would like that a custom template is used.
I found that there is a newJournal macro ( http://tiddlywiki.tiddlyspace.com/newJournal ) which seems to be the right thing to use but I did not find the place where to put it...
Does anybody know?

Then as a follow up question: In the template to be used I would like to define a field which every Journal entry has to fill (a mandatory field so to say). How is this possible?

2) Links to external docs
I've been trying to add links to external documents.
The dir structure is:
C:\Users\user name\tiddly\tiddlers <= here are all the *.tid files
C:\Users\user name\tiddly\docs <= here I would like to have all external files, e.g. I have a file C:\Users\user name\tiddly\docs\Doc1.docx
C:\Users\user name\tiddly\tiddlywiki.info

How can I now link to this Doc1.docx file from a tiddler.
I've tried:
[ext[Link|file:///C:/Users/user name/tiddly/docs/Doc1.docx]]
which renders to a link to file:///C:/Users/user name/tiddly/docs/Doc1.docx
However, clicking on this link nothing happens (both IE and Firefox). If I paste file:///C:/Users/user name/tiddly/docs/Doc1.docx directly into the browser I'm asked how I would like to open the file which is fine.

What is wrong with [ext[Link|file:///C:/Users/user name/tiddly/docs/Doc1.docx]] ?

Also, I would prefer to give a relative link like [ext[Link|./tiddly/docs/Doc1.docx]] rather than the absolute one, but this also does not work...

I had a similar problem when referring to images. The work around I found was importing the pictures first, but I do not want to do this for every external document.

Thanks for your help.

Regards
--sven

Mat

unread,
Aug 31, 2016, 9:12:25 AM8/31/16
to TiddlyWiki
Hi Sven and welcome to TW5!

Valid questions.

1) New Journal template.
When I click "new journal here" on a tiddly I would like that a custom template is used.
I found that there is a newJournal macro ( http://tiddlywiki.tiddlyspace.com/newJournal ) which seems to be the right thing to use but I did not find the place where to put it...
Does anybody know?

Do not rely on tiddlyspace. It is about to be closed down (owner BrittishTelecom) and the wikis and info in it is typically not about TW5 but the older TW2/TWclassic.
 
I suggest you search a bit in the archives for how to make this. I'm pretty sure there's info there and I am myself not sure of the best way to go about it.


Then as a follow up question: In the template to be used I would like to define a field which every Journal entry has to fill (a mandatory field so to say). How is this possible?

2) Links to external docs
I've been trying to add links to external documents.

Where is your TW hosted? Browser restrictons affect this. Also, what is it you expect to happen when you click the link?

Depending on answer, there was something called twexe released a while ago that you might find useful.

 
Also, I would prefer to give a relative link like [ext[Link|./tiddly/docs/Doc1.docx]] rather than the absolute one, but this also does not work...

I think it was either Eric (whose username i believe is elsdesign) or Mario (pmario) that has a neat solution for this.


Ok, sorry if these were kind of indirect answers but I hope they are a step in the right direction.

<:-)

Sven

unread,
Aug 31, 2016, 9:38:22 AM8/31/16
to tiddl...@googlegroups.com
Hi Mat,
Thanks for taking some time to answer.
 
Do not rely on tiddlyspace. It is about to be closed down (owner BrittishTelecom) and the wikis and info in it is typically not about TW5 but the older TW2/TWclassic.
 
I suggest you search a bit in the archives for how to make this. I'm pretty sure there's info there and I am myself not sure of the best way to go about it.

Thanks, will do. Maybe somebody else has a good idea. Anyway, I will keep on searching. So far it was pretty hard to find good documentation but maybe this will improve...
 
Where is your TW hosted? Browser restrictons affect this. Also, what is it you expect to happen when you click the link?

Depending on answer, there was something called twexe released a while ago that you might find useful.

It is on local host (http://127.0.0.1:8080/) and it is true that most likely this is a security feature (preventing links to file:/// )
Hence I'm looking for a solution to point to the file with a relative path.
On apache e.g. if http://127.0.0.1:8080/ points to /dir, then http://127.0.0.1:8080/abc would go to /dir/abc but I don't think this is the case with the built-in server.
Expected behaviour is what happens if I paste the file URL directly into the browser... (it asks me how to open the file) or what happens if you use a normal webserver and click on http://localhost/dir/abc/Doc1.docx


 I think it was either Eric (whose username i believe is elsdesign) or Mario (pmario) that has a neat solution for this.

Ok, sorry if these were kind of indirect answers but I hope they are a step in the right direction.

Thanks. Any sort of help is appreciated.
--sven
Reply all
Reply to author
Forward
0 new messages