Hello,
I am at a bit of a sticking point in a resume building tiddlywiki that I am
trying to put together. I would like to generate a list of tiddlers with a
certain tag and use a TemplateTiddler on it like this:
{{{[tag[experience]]||expandExperience}}}
Within expandExperience I have some html that formats the various matched
Tiddlers (Experience 1, Experience 2, Experience 3, etc.) but I would also
like to build a list using the title of the Tiddler matched like:
<$list filter=[tag[duty]field:experience[{{!!title}}]]>
<li>{{!!title}} - {{!!experience}}</li>
</$list>
Where the "experience" field in the various "duty" tiddlers are being used
to cross-reference the various duties to the various experiences.
This doesn't work since the {{!!title}} defined here is the title of the
duty tiddlers (Duty 1, Duty 2, etc.) and not the title of the experience
tiddler calling the template. I tried a set macro outside the list macro
but that didn't work. This gave the same result:
<$set name="outside" value="{{!!title}}">
<$list filter=[tag[duty]field:experience[{{!!outside}}]]>
<li>{{!!title}} - <<outside>> - {{!!experience}}</li>
</$list>
<$set/>
Where <<outside>> returns the same value as {{!!title}} inside the list
filter in this case. The filter doesn't work either, of course, since it
produces an empty list of tiddlers (there are no duty tiddlers with their
own titles in the experience field). But I can negate (!) the
field:experience filter portion to get the sense of what values are being
returned.
Is there a way to get the title of the tiddler calling the template from
within the list in the template? I have read about using macros to evaluate
the variable outside the list but I don't quite follow what I am supposed
to do.
I am guessing that there might also be a set="$:/temp/callingTiddler"
setTo={{!!title}} structure like the newTiddler plugin uses with the button
macro but I am not sure.
Any guidance would be appreciated.
/Mike
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.