List All Images In A TiddlyWiki?

233 views
Skip to first unread message

Gloria Lassich

unread,
Oct 24, 2017, 5:22:20 PM10/24/17
to TiddlyWiki
Is there a way to do a linked list of all images in a TiddlyWiki?

Currently, I'm using the following to cover all my bases:
<<list-links "[suffix[jpg]]">>
<<list-links "[suffix[gif]]">>
<<list-links "[suffix[svg]]">>
<<list-links "[suffix[png]]">>
<<list-links "[suffix[ico]]">>
<<list-links "[suffix[icon]]">>

Is there a way to do this with one line of code? I'd like to be able to sort my images by title, but as long as they're broken up into several lists that won't work very well.
Screen Shot 2017-10-24 at 2.20.16 PM.png

Mark S.

unread,
Oct 24, 2017, 5:41:29 PM10/24/17
to TiddlyWiki
Try:

<<list-links "[suffix[jpg]] [suffix[gif]] [suffix[svg]] [suffix[png]] [suffix[ico]] [suffix[icon]] +[sort[]]">>

Mark

Gloria Lassich

unread,
Oct 24, 2017, 6:39:37 PM10/24/17
to tiddl...@googlegroups.com
Thank you Mark, that did it! ☺

RichardWilliamSmith

unread,
Oct 25, 2017, 12:19:47 AM10/25/17
to TiddlyWiki
If your images have the content-type set correctly, you can also use the 'is' filter operator.

<$list filter="[is[image]]">

</$list>

Regards,
Richard
Reply all
Reply to author
Forward
0 new messages