Thanks so much for your help Eric, much appreciated
> {{tiddler.title}}
Works fine, but as you point out, not when the tiddler's transcluded. And
unfortunately I'm transcluding *all* the tiddlers with which I want to do
this, so that different nav menu trees (one for each "classification scheme"
can include the same standard glossary terms using their different
terminology.
So I was heartbroken that the second snippet didn't transclude either
<<matchTags " • [[%0]]" "\n" .tag AND
{{story.findContainingTiddler(place).getAttribute('tiddler');}}>>
I'm just hoping maybe there was a small typo there or something, as it also
doesn't render when the primary tiddler itself is displayed directly (which
is the case in other circumstances, e.g. the user's browsing the glossary
tables). I also tried it outside of matchTags:
Keywords related to
{{story.findContainingTiddler(place).getAttribute('tiddler');}}:
also no go.
I suppose it's possible that Morris's
"TWT-Treeview<http://twt-treeview-executive.tiddlyspot.com/>"
design is interfering? I'll get a vanilla TW to test with - also need to get
back to testing your AutoTagger's alias feature, as it would be very helpful
for my use case if we can get it working.
Keep in mind also that I'm hoping to include this functionality within a
ViewTemplate, rather than copying and pasting into each of the 900+ tiddlers
- don't know if that makes things easier or completely impossible
If you're ever in Bangkok you've got a free couch and all the Gaeng Kiaow
Waan you can eat 8-)
> > 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>
On Jun 28, 3:18 pm, Eric Shulman <[email protected]> wrote:
> > <<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
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/tiddlywiki/-/HyubfRl63GoJ.
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.