Hi Stephan, Sorry, my example was put up too quickly (it was actually taken from straight from your example, posted at http://dl.dropboxusercontent.com/u/118970/wiki/tw5tribalknowledge.html. But I had forgotten I'd already used MyList for testing other macros elsewhere in the TW). I'm now using "ImportantList" instead of "MyList" at http://cmaritw5.tiddlyspot.com.
But what I'm still clueless about is how to actually write the filters to create the outer and inner lists. cmari On Monday, March 17, 2014 1:26:56 AM UTC-7, Stephan Hradek wrote: > > > > Am Montag, 17. März 2014 05:23:14 UTC+1 schrieb Stephan Hradek: >> >> >> 1. Create for each importance a tiddler with the importance's name >> and the importance's value as a field >> 2. Make the first list over these tiddler, sorted by importance value >> field >> 3. Make the inner list find those tiddlers havig the importance's >> name in their field >> >> > \define MyFilter() > [tag[$(MyTag)$]itemtype[$(itemtype)$]sort[title]] > \end > > <$set name="MyTag" value={{!!title}}> > <$list filter="[has[impval]nsort[impval]]"> > <$set name="itemtype" value={{!!title}}> > <div class="tw-menu-list-item"> > <$link><$view field="title"/></$link> > </div> > <$list filter=<<MyFilter>>> > <div class="tw-menu-list-subitem"> > <$link to={{!!title}}><$view field="title"/></$link> > </div> > </$list> > </$set> > </$list> > </$set> > > > The problem with sorting in your case is (I guess): "each" does not > switch to your "itemtype", meaning: You don't have a list containing "least > important", "most important"... but you will have one tiddler having one of > the importances. > -- 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. For more options, visit https://groups.google.com/d/optout.