transcluding a link / updating linked files

70 views
Skip to first unread message

hains...@gmail.com

unread,
May 2, 2016, 8:11:58 PM5/2/16
to TiddlyWiki
Hi there.

You're doing a great job! I just discovered TiddlyWiki and am experimenting with it. I want to create a wiki for a club. It should be both, explaining the structures and rules  for Newcomers and being source for forms / documents documents for the function owners to download/ / print out.

I want to link to documents, that are changed / updated from time to time. The same (pdf-)file is linked to in multiple Tiddlers. When the file is updated I want to update the link just once and being able to access it from multiple Tiddlers

I experimented and a working solution is to use html:

I create one Tiddler with the name "description pdf" and the content: "./file.xyz"
 and I reference to it with "<a href={{description pdf}} target="_blank">descriptive flowtext</a> in multiple Tiddlers.

So if the document is updated, I can change the content of the Tiddler "description pdf" and all links in tie TiddlyWiki will refere to the new file.



My first approach was using

[[ext]"descriptive flowtext"|{{description pdf}}]]

but thtat doesn't work.


I read about the difference in transluding and substitution in the documentation but (may be in lack of language) I couldn't figure out a nicer solution.

Is there a more elegante way to transclude a link? The workflow just isn't very fluid when typing the obove. I would love to learn a TiddlyText-version instead of the html-version.

Best regards
Hain

PMario

unread,
May 3, 2016, 8:00:19 AM5/3/16
to TiddlyWiki
On Tuesday, May 3, 2016 at 2:11:58 AM UTC+2, hains...@gmail.com wrote:
I want to link to documents, that are changed / updated from time to time. The same (pdf-)file is linked to in multiple Tiddlers. When the file is updated I want to update the link just once and being able to access it from multiple Tiddlers

I experimented and a working solution is to use html:

I create one Tiddler with the name "description pdf" and the content: "./file.xyz"
 and I reference to it with "<a href={{description pdf}} target="_blank">descriptive flowtext</a> in multiple Tiddlers.

One possibility.

myFile.xyz tiddler defined / edited once. content:

[ext[descriptive text|./file.xyz]]

usage with a transclusion

{{myFile.xyz}}

 
My first approach was using

[[ext]"descriptive flowtext"|{{description pdf}}]]

but thtat doesn't work.

Probably a syntax problem. [ext[descriptive flowtext|tiddlerName]] ... text referencing isn't possible here

see: http://tiddlywiki.com/#Linking%20in%20WikiText

hope that helps
-mario

PMario

unread,
May 3, 2016, 8:01:20 AM5/3/16
to TiddlyWiki
There would be a second possibility with global macros, if this one doesn't fit
-m
Reply all
Reply to author
Forward
0 new messages