[tw5] Re: Filter to show caption field if it exists

2021-01-26 Thread Jon
Thanks for the alternatives, Tones. Regards Jon On Tuesday, 26 January 2021 at 23:47:38 UTC TW Tones wrote: > Jon, > > Mark refactrored you code as requested but a shorter for is if the > cauurrent tiddler is valid use this; > > {{{ [all[current]get[caption]] ~[] }}} > > Or for plain text > >

[tw5] Re: Filter to show caption field if it exists

2021-01-26 Thread TW Tones
Jon, Mark refactrored you code as requested but a shorter for is if the cauurrent tiddler is valid use this; {{{ [all[current]get[caption]] ~[] }}} Or for plain text <$text text={{{ [all[current]get[caption]] ~[] }}}/> Regards Tones On Wednesday, 27 January 2021 at 07:51:05 UTC+11 Jon wrote:

[tw5] Re: Filter to show caption field if it exists

2021-01-26 Thread Jon
Perfect! Thanks a lot Mark. On Tuesday, 26 January 2021 at 17:23:26 UTC Mark S. wrote: > Try: > > >> <$list filter=[tag[triangle]]> >> >> > <$list filter="[all[current]has[caption]get[caption]] >> :else[]" variable=name > >> <$link><> >> > > >> >> <$transclude

[tw5] Re: Filter to show caption field if it exists

2021-01-26 Thread 'Mark S.' via TiddlyWiki
Try: > <$list filter=[tag[triangle]]> > > <$list filter="[all[current]has[caption]get[caption]] > :else[]" variable=name > > <$link><> > > > <$transclude mode=block/> > > > > > -- You received this message because you are subscribed to the Google Groups