http://tiddlywiki.com/static/TextWidget.html

<$text text="[["/><$view field="title"/><$text text="]]">>

There might be a simpler way, but this works.

...So you're rendering this all to a string for use as a parameter to 
another filter?  If you manage that, I'm *very* curious as to how.  (I've 
not managed to figure out how to render WikiText to plaintext for use in 
string attributes.)

On Thursday, 10 September 2015 08:18:33 UTC-5, Linus Johnsson wrote:
>
> 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 <[email protected] 
> <javascript:>>:
>
>> 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 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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 [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/ced0eba5-a1dd-4f00-b3e6-aa7246f8ef99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to