Hello,
I made a template to display an image and a list of tiddlers based on the 
title of the tiddler I use the template with, so the data tiddlers just 
need:

{{||CustomTemplate}}

Transcluding the image is pretty straightforward, the image is in another 
tiddler with the same name of the data tiddler and the .png suffix:

<$transclude tiddler={{{ [{!!title}addsuffix[.png]] }}}><$view 
field="body"/></$transclude>

The list of tiddlers is a bit trickier; I need to add a prefix to the 
tiddler name for the tag filter (Gifts.Tiddler) and another tag; I ended up 
using $set and a variable:

<$set name="myVariable" value={{{ [{!!title}addprefix[Gifts.]] }}}>
<$list filter="[tag<myVariable>tag[Gifts.Core]]">
<$link to=<<currentTiddler>>><$view field=title/></$link>,&nbsp;</$list>
</$set>

It works as intended, but I wonder if it would be better to add the prefix 
directly inside the $list filter instead of using a variable and $set.

-- 
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/6a540932-c1ab-4c3c-8115-90aadd91f711n%40googlegroups.com.

Reply via email to