[TW5] Creating a photo gallery pointed to a folder.

180 views
Skip to first unread message

Pieter-Michiel Geuze

unread,
May 20, 2015, 2:44:45 PM5/20/15
to tiddl...@googlegroups.com
Thank you all for all the help so far.

I would like to point a wiki link to a folder and then show the pictures in a type of gallery. Is this currently possible?

The reason is that I take multiple evidence pictures of computers and components and I can create folders for each. I would then point the wiki link of the device to the folder and then show the evidence pictures of that device.

I understand that currently you cannot drop and drag external links and I do not want to bloat my TW with internal images.

Thank you again for your help.

Eric Shulman

unread,
May 20, 2015, 3:20:55 PM5/20/15
to tiddl...@googlegroups.com
Browser makers have been working hard to *prevent* direct access to filesystem information.   That is why drag-and-drop does not give you the path to the file being dropped.  So, the short answer is no, you can't "point to a folder" and get a list of the files it contains, as that would be a security hole that could be used to probe a system to see what is installed and then deliver a virus payload targeted at that system's weakest applications.

Note: some browsers still permit direct file access, but only by using an add-on that is installed into the browser.  Browser add-ons can perform "privileged functions" like getting a list of the contents of a folder.  However, even that is limited, as there is no direct method to call those add-on functions from a web page such as TiddlyWiki, as that would also open up a big security hole.

TiddlyFox is a browser-addon for FireFox that enables direct file I/O for TiddlyWiki files only.  It works by detecting when a TiddlyWiki file is loaded into the browser, and then 'injecting' extra javascript code into the loaded file, so that it modifies the internal handling for loading/saving the file so that it uses a "message drop" method to deliver the modified file content to the TiddlyFox privileged functions, so those functions can then actually save the data to a local file.

Even with TiddlyFox, there is *currently* no way to get the list of files from a specified folder.  So that won't help your situation.

Sorry I can't provide a more useful response...

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:



Mat

unread,
May 20, 2015, 3:41:55 PM5/20/15
to tiddl...@googlegroups.com
There are many external cloud services that feature gallery type image folders. You can often embed these via iframes in TW.

<:-)

Greg Davis

unread,
May 20, 2015, 4:48:00 PM5/20/15
to tiddl...@googlegroups.com
Hi

As mentioned previously there are a number of ways to approach this. If you search for 'gallery' in this group you will probably find several.

If you are trying to do something for 'distribution' on cd or usb without an internet connection a simple approach might be to use tabs inside a tiddler. Besides the image, notes could be included within the tab. It could also link to the full-sized image for better viewing of detail. Here is a quick and dirty example:

https://dl.dropboxusercontent.com/sh/h8q01y5kygoyhch/AAB88H2CEZP_IAdzc1AJBYN8a/5-1-7_left-menu_custom.htm#TabbedGallery

Maybe it will give you some ideas.

Good luck,
Greg

Reply all
Reply to author
Forward
0 new messages