Restaurant
Joes Bar
Mikes Burgers
Shops
Toys n More
Wizard of Books\define MyFilter()
[location[$(MyTag)$]sort[title]]
\end
<$set name="MyTag" value={{!!title}}>
<$list filter=<<MyFilter>>>
<div class="tc-menu-list-item">
<$transclude field="subtopic"/>
</div>
<div class="tc-menu-list-subitem">
<$link to={{!!title}}><$view field="title"/></$link>
<div class="tc-menu-list-subitem">
<$transclude field="blurb"/>
<div class="tc-menu-list-subitem">
<$transclude field="location-help"/>
</div></div></div></$list></$set>Restaurant
Joes Bar
Restaurant
Mikes Burgers
Shops
Toy n More
Shops
Wizard of BooksTo help us understand please show how location relates to your test data. Are you suggesting all in your above data are in the same location.
Because if you do there would be a filter to select the current location then two lists one after the other to show all restaurants and all shops in the current location.
Or perhaps this would be a list of locations with two list restarraunts and shops one after inside the location list.
Here I see only one <$list </$list
Regards
Tony
\define MyFilter()
[location[$(MyTag)$]sort[title]]
\end
<$set name="MyTag" value={{!!title}}>\define locationfilter()
[blurb[$(blurb)$]location[$(location)$]sort[title]]
\end
\define blurbfilter()
[location[$(location)$]each[blurb]get[blurb]sort[]]
\end
<$set name="location" value={{!!title}}>
<$list filter=<<blurbfilter>> variable="blurb">
<div class="tc-menu-list-item">
<<blurb>>
</div>
<div class="tc-menu-list-subitem">
<$list filter=<<locationfilter>>>
<$transclude field="subtopic"/>
<$link to={{!!title}}><$view field="title"/></$link>
<$transclude field="location-help"/>
</$list>
</div>
</$list>
</$set>--
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/gEWSkUL-l1M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/19a58ff3-ee44-4a48-8ee3-3db7c7c70f32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.