On Monday, April 20, 2015 at 7:34:31 PM UTC-7, Rustem wrote:
>
> I have a macro that outputs a tree of tiddlers, but it only works when 
> invoked from the “root node” tiddler. If I put it in a tiddler with a 
> different name, there is no tree. Basically, the parameter is ignored, it 
> just picks up the current tiddler’s title and goes from there.
>
> Please help! Thanks!
>
> \define tree_macro(node)
> ;[[$node$]]
> :<$list filter="[<currentTiddler>tagging[]!<currentTiddler>]">
>
>   <$macrocall $name=tree_macro node={{!!title}}/>
>
> </$list>
> \end
>
> Use the <$tiddler> widget to set the context for the initial node, like 
this:

\define tree_macro(node)
<$tiddler tiddler="$node$">
;[[$node$]]
:<$list filter="[<currentTiddler>tagging[]!<currentTiddler>]">

  <$macrocall $name=tree_macro node={{!!title}}/>

</$list>
</$tiddler>
\end

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b8b563c6-6795-4c8f-a3d3-923d98861c0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to