That looks like what I want.  Thank you.

Kevin

On Friday, August 22, 2014 6:10:19 PM UTC-4, HowardM wrote:
>
> Hi Kevin
>
> The following code works if placed in a tiddler with a list field 
> containing the tags.
>
> <ul><$list filter ="[list[]]" 
> variable="mytag"><li><<mytag>></li><ul><$list 
> filter="[all[tiddlers]tag<mytag>]"><li>{{!!title}}</li></$list></ul></$list></ul>
>
> The result is a list of tags and, for each tag, a list of the tiddlers 
> tagged with it.   Obviously you can adapt this to print out other 
> information for the tagged tiddlers.  Hope this helps.
>
> Howard
>
>
> On Thursday, August 21, 2014 7:16:06 PM UTC+1, kccn...@glenevin.com wrote:
>>
>> My apologies in advance for what I am sure is something that's been done 
>> many times before but I can't seem to find the answer in the docs or the 
>> groups.
>>
>> Very simply, I'd like to achieve a "foreach" type behavior to create a 
>> nested list.
>>
>> At the top level, I want to read the list field from a given tiddler 
>> which contains a list of tags and use each entry to create the top level 
>> list
>> Then for each entry in the list, I want to find all the tiddlers that 
>> have that tag and display them in a sublist
>>
>> The ListWidget docs have the basic framework for what I want, but I can't 
>> figure out how to send the current value from the list in the top level 
>> tiddler to the filter operator of the child list.
>>
>> I'm pretty sure I need to use the setWidget to save the value, but again, 
>> I can't figure out how to dereference the macro inside the filter operator.
>>
>> Is there an example somewhere that might help?
>>
>> Thanks,
>>
>> Kevin
>>
>

-- 
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.

Reply via email to