Dear c pa,

Thank you for your kind advice. Your code does what it is supposed to, of
course. But since many of my tiddlers contain spaces, the resulting list
will not work as a filter. (I need to perform a second filter run on the
results rather than putting all the functionality in the macro, for to do
the latter would in my case result in duplicates.) Obviously, to get this
to work I need double square brackets around each title. For reasons that
are obscure to me, [[<$view field="title />]] just renders as plain text. I
have no idea how to escape those brackets so that <$view field="title /> is
wikified. I cannot find any information on this on the web. Any help would
be appreciated.

Best regards,
Linus

2015-09-10 0:52 GMT+02:00 'c pa' via TiddlyWiki <tiddlywiki@googlegroups.com
>:

> Linus,
>
> Use something like this. It's a call to a macro that recursively calls
> itself.
>
> \define listChildren(tag)
>     <$list filter="[tag[$tag$]]">
>
>         <!-- Change the following line to display whatever it is you want
> to be displayed for each child tiddler-->
>         <$view field="title"/><br/>
>
>         <$macrocall $name="listChildren" tag=<<currentTiddler>> />
>     </$list>
> \end
>
> !Top   <!-- The name of the top tiddler (or you could do an [all[current]]
> filter -->
>
> <$macrocall $name="listChildren" tag="Top" />
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/XH4tgLlr7fY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> 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/89913824-5086-41a5-8d89-905970414975%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/89913824-5086-41a5-8d89-905970414975%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/CANHXGJSEvMTWc0PH5VovZWXRZf%3D8M8%3DGtn8UTEboN9yUrmf1Hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to