Hi,
I really like TiddlyWiki (TW5). I have been saving some data as fields in Tiddlers so that the data is more structured. I figured I'd be able to use this structured data in powerful ways as I learnt more.
I am now trying to filter tiddlers based on one of the fields I have called "length". I have foobar tiddlers with lengths 3, 8.4167, 9, 11, and 11' (that's a single quote as in 11-feet).
In a tiddler I am trying to display a table of all foobar tiddlers under a certain `length`. This is one of my attempts: -
<th>foobar</th><th>length</th>
<$list filter="[tag[foobar]has[length]nsort[length]] +[get[length]allbefore[9]]">
asdf <$link><$view field=title/></$link>
------
I am selecting all the tiddlers tagged `foobar` that have a length field, and sorting them numerically by the `length` tag. This works as expected. I then try to filter them to return only those under a certain length. I can't work out how to get the allbefore operation to work on a field rather than a title. If I do `get[fieldname]`, I can use `allbefore`, but then I don't know how to get the tiddler rather than the field.
Another problem is that when I use `allbefore[10]` the filter returns no entries. I'd expect it to return the foobars with `length` less than 10 such as 3, 8.4167, and 9, but it returns none. Similarly any multiple digit parameter for the `allbefore` operator does not work as I expected, they all return no entries.
I have been googling, reading the TiddlyWiki documentation, experimenting and searching this group and I can't work out how it's meant to work. Can someone please enlighten me.
Thanks,
Berne