Would like to share something useful and hopefully improve it with your
help. I don't remember how I came up with this. Certainly not on my own, I
just derived it from someone else's work.
Create the following tiddlers:
*ListFieldsColTemplate*
<!-- list fields in a column -->
<table><$list filter="[list{!!title}]" variable="currentField"><tr><th><
<currentField>></th><td><$view field=<<currentField>>/></td></tr></$list>
</table>
*ListFieldsRowTemplate*
<!-- list fields in a row -->
<table><thead><tr><$list filter="[list{!!title}]" variable="currentField">
<td><<currentField>></td></$list></tr></thead><tbody><tr><$list
filter="[list{!!title}]" variable="currentField"><td><$view field=<
<currentField>>/></td></$list></tr></tbody></table>
Create a test tiddler:
- Add lines
{{{[is[current]]||ListFieldsRowTemplate}}}
{{{[is[current]]||ListFieldsColTemplate}}}
- Add fields
- field1
foo
- field2
bar
- list
field2 field1
*Now the question:*
How can I use an arbitrary field for the list, instead of the special "list
" field?
- myfieldlistfield
field2 field1
And in general, why is there only one list field, and it has to be named
"list"?
--
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/d/optout.