I'm having a bit of trouble building a grouped list of data tiddlers. My 
data tiddlers are dictionaries (rather than JSON), and have the expected 
form:

type: type1
field1: value1
field2: value2
...

I want to display a list of tiddlers, grouped by the "type" property. 
Unfortunately, I can't seem to work the tiddly magic to make it happen. If 
I take the "type" property out of the dictionary and make it a field of the 
data tiddlers, there's no problem.

The doc for "each" seems to make it clear that it operates on fields (not 
indexes/properties).

I messed around with "getindex[type]" because the doc suggests values 
should be dominantly appended to the output (which ought to produce a list 
of unique values) but it always seems to include duplicates when I use it. 
The basic form:

<$list filter="[each[type]]">
  <$list filter="[type{!!type}]">
    <!-- display code here -->
  </$list>
</$list>

works fine when "type" is a field. But I can't work it out when "type" is a 
property/index - can anyone help?

Cheers, Iain

-- 
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/6207d93c-bd08-4886-87d1-9d8fc61d87e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to