Eric, et al

A lot has happened overnight (my time) in this thread.

Thanks for your contributions, and eric for this example

>
>> \define toc-all(here,exclude)
>> <$list filter="""[title[$here$]tagging[]] $exclude$ -[[$here$]]""">
>>    <$text text=<<currentTiddler>>/>
>>    <div style="padding-left:2em;">
>>        <$macrocall $name="toc-all" here=<<currentTiddler>> 
>> exclude="""$exclude$ -[[$here$]]"""/>
>>    </div>
>> </$list>
>> \end
>>
>> <<toc-all TableOfContents>>
>>
>
It is important to share the single  macro version; the reason  I did not 
earlier is to leave the ability to standardise a heading before the TOC is 
rendered.

This is an elegant way to to track the branch and combat loops, thanks. 

One reason I have not published a TOC with loop prevention so far is I am 
keen to build more smarts into the the branch handling mechanism, such as 
showing relationships, capturing the branch separately from the tree that 
generates it (snapshot toc) and more. 

However It would be nice to build this loop prevention into the First 
example given while retaining access to insert customisations we see 
subsequently published.

I am keen to have the concept of recursion becomes better known in the 
community.


 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2b713e21-bc99-4532-9a37-416e40441075%40googlegroups.com.

Reply via email to