On Tuesday, October 29, 2019 at 12:21:39 PM UTC-7, si wrote:
>
> I have tiddlers for books with the title of the book stored in a field 
> called "book-title", and I want to create a link to the pdf of the book.
> For example say I have a tiddler containing the field "book-title=[[Oliver 
> Twist]]".
> I want to create a template to generate a link of the form "[ext[Oliver 
> Twist|.\books\Oliver Twist.pdf]]".
> I have tried "[ext[{{!!book-title}}|.\books\{{!!book-title}}.pdf]]" but 
> this doesn't work.
>

In order to construct wikitext syntax that inserts a value from a field, 
you first need to create a macro definition, like this:
\define book-link(title) [ext[$(title)$|.\books\$(title)$.pdf]]

Then, to use it, you would write:
<$vars title={{!!book-title}}><<book-link>></$vars>

Let me know how it goes...

enjoy,
-e
Eric Shulman
TiddlyTools: "Small Tools for Big Ideas" (tm)  
 http://tiddlytools.github.io/
InsideTiddlyWiki: The Missing Manuals    
http://insidetiddlywiki.tiddlyspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/69ef846a-e7c8-4143-b0cc-3bce399f8e49%40googlegroups.com.

Reply via email to