Creating a gallery of images in a directory

109 views
Skip to first unread message

Anthony

unread,
Dec 13, 2020, 10:32:52 AM12/13/20
to TiddlyWiki
Colleagues,

I'm interested in creating a gallery of images in a tiddler from all the files in a particular folder - i.e. without knowing beforehand filenames or the number of files. I've searched this group and https://tiddlywiki.com/ but haven't found anything that addresses this (but maybe my search terms have been inappropriate). However, I also have a feeling there may be security and/or rights issues with this so I'm expecting this isn't possible.

Many thanks in advance for any more knowledgable insights,

Anthony

Jan

unread,
Dec 13, 2020, 3:28:26 PM12/13/20
to tiddl...@googlegroups.com
Hi Antony,
Unless you work with node.js you will need a php-backend for this, because your wiki does not know the structures on your server.
Best wishes Jan
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a1b3b0d1-8650-4069-b79c-2382c311c711n%40googlegroups.com.

Anthony

unread,
Dec 15, 2020, 5:59:12 AM12/15/20
to TiddlyWiki
Thanks Jan,

I've not looked into node.js yet and php is beyond my current skills-set - maybe something for the future. I'm just using TW on a Windows 10 machine and hoped that, given a particular directory, it would be possible to 'open' all the files (images) it contained but I had a feeling this would not be a simple matter. I'll have to resort to manually making a list of files.

Take care,

Anthony

Donald Coates

unread,
Dec 16, 2020, 10:00:36 PM12/16/20
to TiddlyWiki
still using nodejs check out tiddlywiki.files and tiddlywikifolders  as a way to manipulate files.  tiddlywiki.files in particular will allow you to have tiddlywiki load a folder, apply a tag to everyfile in it automatically, and then you could have a tiddler that loads all files (such as images) based on that tag. All this is very much easier said then done if you are just starting out with nodejs but it's well worth the time.  Nodejs unlocks some very powerful features, especially when it comes to file manipulation.

Donald Coates

unread,
Dec 16, 2020, 10:05:54 PM12/16/20
to TiddlyWiki
and check out bobEXE as an easy way to run nodejs tiddlywiki on your windows machine.

On Tuesday, December 15, 2020 at 5:59:12 AM UTC-5 Anthony wrote:
Reply all
Reply to author
Forward
0 new messages