[TW5] Preferential Caption/Title from list

74 views
Skip to first unread message

andrew harrison

unread,
Apr 7, 2016, 4:35:17 PM4/7/16
to tiddl...@googlegroups.com
Is there a way to do:
<$view field='caption'><$view field='title'/></$view>
using some kind of modifed version of
{{{ [list[$:/TiddlerNameWithListField]] }}}
???
The transclusion lists all the titles that are in the list field but what I want is IF the title listed has a caption, show the caption instead of the title but still have the final output sorted.

Eric Shulman

unread,
Apr 7, 2016, 5:36:57 PM4/7/16
to TiddlyWiki
To get custom output from a filter, use the $list widget.  Something like this:

<$list filter="[list[$:/TiddlerNameWithListField]]">

   <$view field='caption'><$view field='title'/></$view>
</$list>

enjoy,
-e

infurnoape

unread,
Apr 8, 2016, 9:35:52 AM4/8/16
to tiddl...@googlegroups.com
Oh, of course. You are the best Eric. Thank you.



Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
--
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 tiddlywiki+...@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/07cade0f-a1ae-40a4-a877-dbd552310f9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages