Here's what I want to do...

I have a tiddlers that represent restaurants and stores. So those tiddlers 
will be like:

Title: name of restaurant or store
Location is a field that indicates where the restaurant is located
Blurb is a field that is some info about the place

There is a subtopic field that is either Restaurant or Store.

My goal is to have another tiddler that had a title of a location and lists 
all the restaurants or stores in that location.

I want it to group the restaurants and stores together. Like this:

Restaurant
   Joes Bar
   Mikes Burgers
Shops
   Toys n More
   Wizard of Books



I'm almost there. I know I need a filter with in a filter but I cant get 
that syntax right.

Here is what I have:

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


And that gives me more like:

Restaurant
   Joes Bar
Restaurant
   Mikes Burgers
Shops
   Toy n More
Shops
   Wizard of Books



-- 
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/60881258-cd2c-4010-befa-cf120be20a9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to