Another filter Q

57 views
Skip to first unread message

David Gifford

unread,
Dec 27, 2016, 6:48:47 AM12/27/16
to TiddlyWiki
Hi all

Sorry to tire you with list filter questions...I am using a field called uptopic in some of my tiddlers. I would like to create a list of the values in the uptopic fields, and for each value, a list of tiddlers with that value.

I tried the following, which comes close, but this duplicates each uptopic value that appears in more than one tiddler. I only want each value to appear once. I tried numerous options last night in order not to bother you all. But I just can't crack this one myself.

Thanks to anyone for your help.

<$list filter="[get[uptopic]sort[title]]">

<b><$view field="title"/></b><br><$list filter="[uptopic{!!title}]"><span class="indent1"><$link><$view field="title"/><br></$link></span></$list>

</$list>

Tobias Beer

unread,
Dec 27, 2016, 7:45:04 AM12/27/16
to TiddlyWiki
Hi Dave,

The each Operator is your friend.

So, try: 

<$list filter="[each[uptopic]get[uptopic]sort[]]" variable="topic">
<b><$text text=<<topic>>/></b><br>
<$list filter="[uptopic
<topic>]">
<span class="indent1"><$link><$view field="title"/></$link><br></span>
</$list>
</$list>

I perfer Definition Lists for this type of thing...

<dl>
<$list filter="[each[uptopic]get[uptopic]sort[]]" variable="value">
<dt><$text text=<<value>>/></dt>
<$list filter="[uptopic
<value>]">
<dd><$link><$view field="title"/></$link></dd>
</$list>
</$list>
</dl>


Best wishes,

Tobias.

David Gifford

unread,
Dec 28, 2016, 8:03:20 AM12/28/16
to tiddl...@googlegroups.com
oooooh perfect, Tobias! Thanks a heapin helpin

--
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/buTIHIgagaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@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/ed6cc0d7-61aa-4874-bb92-fa8fcf43340a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
David Gifford
Christian Reformed World Missions, Mexico City

Reply all
Reply to author
Forward
0 new messages