> <<matchTags " • [[%0]]" "\n" .notTag AND NOT .menu AND *Curiosity*>>

> What I'd like to do is have a variable of some sort substitute "current
> tiddler" for the text in the last parameter.
> Is that possible?


You should be able to use an "evaluated parameter" for the last value,
where
   {{tiddler.title}}
will give you the name of the current tiddler.  Thus:
   <<matchTags " • [[%0]]" "\n" .notTag AND NOT .menu AND
{{tiddler.title}}>>

However, this *might* not always produce the desired results: for some
uses --
such as transcluding content with the <<tiddler>> macro -- the
'current tiddler' is the one that is being transcluded, rather than
the tiddler in which it is *displayed*.  To ensure that the correct
*containing tiddler* is used, a more complex evaluated parameter can
be applied:
   {{story.findContainingTiddler(place).getAttribute('tiddler');}}

Note that this code assumes that the macro is being rendered from
within a tiddler displayed in the story column.  If you try to use
this evaluated parameter for content rendered in other places (i.e,
the MainMenu, SideBar, or header areas), it will get an error.

Give it a try and let me know how it goes...

-e




>
> And then ideally put the whole shebang into a ViewTemplate, using either 
> HideWhen
> <http://mptw.tiddlyspot.com/#HideWhenPlugin>or 
> TaggedTemplateTweak<http://www.TiddlyTools.com/#TaggedTemplateTweak>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to