Thx very much for your reactivity. It works perfectly. My first attempt was also with the $list widget but I mixed the order betwen <ul> and <li> resulting in a not well nested list ... So I went to something much too complicated ... the only good point is that I learned how to write a javascript macro (and that you have to reload your page each time you make a modif on it).
Again thanks a lot !!! Laurent PS: I'm a new comer in Tiddlywiki but this piece of software looks really really powerfull, looks also that there id a great community community behind) Le mardi 4 septembre 2018 07:18:23 UTC+2, Eric Shulman a écrit : > > On Monday, September 3, 2018 at 6:28:40 PM UTC-7, TonyM wrote: >> >> Laurent, >> I can't help you on the JavaScript but have you tried using recursion in >> WikiText as do the core toc macros ? >> > > >> On Tuesday, September 4, 2018 at 10:34:26 AM UTC+10, Laurent Bonet wrote: >> >>> Trying to write a "recursive" javascript macro to generate nested list. >>> >> > Here's your code, written using a blend of wikitext, widgets, and HTML : > > \define recursiveBuild(root) > <li>$root$<ul> > <$list filter="[field:_compose[$root$]]"> > <$macrocall $name="recursiveBuild" root=<<currentTiddler>> /> > </$list> > </ul></li> > \end > > Put the above into a tiddler tagged with $:/tags/Macro, and then invoke it > from any tiddler using: > <<recursiveBuild Foobar>> > (where Foobar is the name of the initial root tiddler) > > let me know how it goes... > > enjoy, > -e > Eric Shulman > TiddlyTools.com: "Small Tools for Big Ideas!" (tm) > InsideTiddlyWiki: The Missing Manuals > -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c8eae685-52dc-466e-bbce-9a8c9163fc55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

