The idea is to get the contents of the ‘caption’ field on an image tiddler displayed in the current tiddler. It is all part of the issue of finding a method of displaying an image caption with the Spotlight plugin.
I am trying to get the syntax correct for this filter, but it is proving elusive:
{{{ [<storyTiddler>_images:all[]get[caption]join[ ]] }}}
or maybe this version
{{{ [<storyTiddler>_images:all[]:map[get[caption]else{!!title}]join[\n] ] }}}
I have tried various versions but they either display nothing, or have a syntax error.
In context, this filter sits inside this procedure:
<!-- also needs SQ Filters plugin -->
\procedure spotlight-actions()
<$action-spotlight
$images={{{ [<storyTiddler>_images:all[]format:titlelist[]join[ ]] }}}
$labels={{{ [<storyTiddler>_images:all[]get[caption]join[ ]] }}}
$start=<<dom-src>>
/>
\end
<$eventcatcher $click=<<spotlight-actions>> selector="img" class="spotlight-mixmedia-example">