I assume you're thinking of using Tobias' random solution ? His is based on 
selecting tiddler titles. Haven't tried it, but assuming you could 
construct a massive filter like:

\define reimage() C:\mypath\fw_$(num)$.jpg
<$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" variable="num" >
<$image source=<<reimage>>/>
</$list

which could be used to build fw_0001.jpg, fw_0002.jpg, fw_0003.jpg ...

Not sure what the performance would be like with 4000 items, or if the 
parser would break.

Or if you had a data dictionary with the file names in it, or even just 
numbers 0-4000 you could used the indexes operator.

Mark

 

On Friday, July 14, 2017 at 3:48:41 AM UTC-7, @TiddlyTweeter wrote:
>
> Ciao tutti
>
> This is an early query to see if anyone can confirm whether what I will 
> need will be possible or not.
>
> If it sounds like it is I can lay out the use case in more detail.
>
> By way of background, I have a project with multiple (external) images. 
> When a visitor comes to the TW online I want them to see ONE randomly 
> selected image presented via a modal. 
>
> Important to understand is that *this is NOT a randomly selected Tiddler* 
> (which a gizmo by Tobias Beer does well already). 
>
> Rather, the modal initiation should dynamically create a path to a 
> randomly selected external graphic file that the modal displays (obviously 
> only within the range of what is available). The range for the image to 
> randomly pick is currently "0001" to "4000"---with full-file names like: 
> "fw3022.jpg".   
>
> (My thinking behind this is to NOT burden the TW with 4,000 tiddlers it 
> doesn't need to be a lightweight Lightbox). 
>
> I hope this is clear enough.
>
> Please ask me to clarify if it is not.
>
> Many thanks
> Josiah
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/417fccac-c7b4-4def-bf7a-5c898e02a371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to