Well, I'm almost there.

Example wiki: 
http://dl.dropboxusercontent.com/u/118970/wiki/scottexamples.html
When you look at the example you'll see the issue. It is mostly working but 
things aren't showing up as they should. I've outlined it in the Problems 
tiddler you'll see when you look at the example.

My code:
<$list 
filter="[is[current]tagging[]has[subtopic]each[subtopic]sort[subtopic]]">
<div class="tw-menu-list-item">
<$view field="subtopic"/>
</div>
<$list filter="[subtopic{!!subtopic}sort[title]]">
<div class="tw-menu-list-subitem">
<$link to={{!!title}}><$view field="title"/> </$link>
</div></$list></$list>




On Sunday, March 2, 2014 11:08:12 PM UTC-8, Scott Kingery wrote:
>
> Thanks everyone.
> cmari, the each[subtopic] was the piece I was missing I think.
>
> Additionally, I'm trying to do what you want as well by having the 
> list search for tiddlers tagged with the current tiddler's title. I 
> borrowed this: 
> <$list filter="[is[current]tagging[]sort[title]]">
>
> from http://www.giffmex.org/tw5mall.htm. It gets us a bit closer by I 
> can't seem to get the syntax right to merge it in with what you gave me 
> before.
>
>
> On Sunday, March 2, 2014 1:38:30 PM UTC-8, cmari wrote:
>>
>> Hi Scott,
>>
>> I was fiddling around with something similar yesterday.  In case it's of 
>> interest, here's the (far more rudimentary approach than Stephan's) 
>> approach I came up with.  Note that this doesn't make use of tags at all, 
>> it simply finds all the tiddlers that contain a field called subtopic, and 
>> then lists those tiddlers (alphabetically) by subtopic. You could of course 
>> sort the lists differently, and you could filter for a particular tag by 
>> adding, e.g., [tag[Movie], to the second list filter. I would have liked to 
>> be able to search for tiddlers tagged with the current tiddler's title, or 
>> even tag, but I don't know how to do that in any generic way, so I opted 
>> instead to use a unique field name in the tiddlers I wanted in my list.  
>>
>> (Also, obviously, you could take out the styles; I was just seeing what I 
>> could do with the options that already existed).
>>
>> <$list 
>> filter="[!is[system]has[subtopic]each[subtopic]sort[subtopic]]"><div 
>> class="tw-menu-list-item"><$link to={{!!subtopic}}><$view 
>> tiddler={{!!subtopic}} field="title"/></$link> 
>> </div>
>> <$list filter="[subtopic{!!subtopic}sort[title]]">
>> <div class="tw-menu-list-subitem">
>> <$link to={{!!title}}><$view field="title"/> </$link>
>> </div></$list></$list>
>>
>> cmari
>>
>> On Sunday, March 2, 2014 12:45:26 AM UTC-8, Scott Kingery wrote:
>>>
>>> I'm just getting started experimenting with TW5. What I want to do is 
>>> have a field called subtopic and then have those grouped on a list.
>>>
>>> The results looking something like:
>>> Movies (main topic and title of tiddler)
>>> Comedy (subtopic)
>>> Drama (subtopic)
>>>
>>> The following is the general idea but doesn't have the syntax to group.
>>>
>>> <$list filter="[has[subtopic]sort[subtopic]]">
>>> <h2><$view field="subtopic"/></h2><$link to={{!!title}}><$view 
>>> field="title"/></$link><br>
>>> </$list>
>>>  
>>> Can this be done?
>>> Thanks,
>>> Scott
>>>
>>>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to