How to make the image Filter parse also parse "hidden" images

Some time ago @saqimtiaz presented the very helpful spotlight plugin to enhance the way we show images. In this tiddler he presented a way to show automatically generate a gallery for all images in a tiddler (enhanced and explained here). This has been a great enhancement for my wikis, but the more I use it the more I would like to cure a tiny flaw and enhance one functionality.
The filter in my wiki does not seem to correctly write the URLs of images hidden in a macro (sometimes I fold images in an accordion-macro, which seems to make them invisible for the filter) or transcluded from other tiddlers.
The other whish I would have would be to enable pinch-zooming in the plugin.

Did you try using the :all suffix for the operator as suggested?

\procedure spotlight-actions()
<$action-spotlight
	$images={{{ [<storyTiddler>_images:all[]format:titlelist[]join[ ]] }}}
	$start=<<dom-src>>
/>
<$action-sendmessage $message="tm-full-screen" $param="enter"/>
\end

Does that mean you did try it, or you did not? I really cannot understand what that reply is meant to convey.

What does the macro you are using look like?

Hi, @saqimtiaz sorry this is the actual Marco directly copied from my Wiki

What does this macro look like?

Did using the :all suffix for the _images[] filter resolve the problem or not?

In the wiki it is exactly as I wrote above, i copied the lines from there.

As you proposed the procedure is called with an eventcatcher that surrounds the original viewtemplate. The rest works, but the transcluded images are not in the list. So when I click on a transcluded image only the other images open.

Again, what does this macro look like?

Sorry, I misunderstood, this is the procedure. In the case of the click the accordion is open. But as I write it, I realize that the filter will not be able to see that.

\define fold(heading, text, content, style:"text-align:left" )
<$reveal type="match" state=<<qualify "$:/state/section$heading$">> text="" default="">
<$button class="tc-btn-invisible" style="$style$"> 
<$action-setfield $tiddler=<<qualify "$:/state/section$heading$">> $value="show"/>
<div style="display:block">

<h2>&#8675; $heading$</h2>
</div>
</$button>
</$reveal>
<$reveal type="nomatch" state=<<qualify "$:/state/section$heading$">> text="" default="">
<$button class="tc-btn-invisible" style="$style$"> 
<$action-deletetiddler $tiddler=<<qualify "$:/state/section$heading$">>/>
<div style="display:block;margin-bottom:0px;padding:0px">

<h2>&#8673; $heading$ <$list filter="[[$content$]] [[$heading$]] -[[]] +[limit[1]is[tiddler]]" >
<$link to=<<currentTiddler>> tooltip="Eintrag öffnen" >&#10143;</$link>
</$list></h2>
</div>
</$button><div style="display:block;margin-top:0px;padding:0px;">

$text$
<$list filter="[[$content$]] [[$heading$]] -[[]] +[limit[1]]" >
<$transclude mode="block"/>
</$list>
</div>
</$reveal>
\end

I dont know if its relavant here but if you used the reveal widget as an accordian there is an option on the parameters;

retain Set to “yes” to force the content to be retained even when hidden (defaults to “no”)

Content although hidden by the reveal widget may still be retreivable with this set.

So perhaps try adding this @JanJo its worth a try.

1 Like

Retain means it is loaded but not shown?

that is how I understood it