Hi everyone
I have created a Tiddlywiki which allows me to view thumbnails of external images. Each image is a tiddler with a _canonical_uri field. The images are in a folder named images which is in the same parent folder as the wiki.
I can select individual thumbnail images using a checkbox and create a json array JsonImportList of those images that I want to import into my wiki.
[
{
“path”: “images/20241013-171025.jpg”
},
{
“path”: “images/20241105-141124.jpg”
}]
The following code was supposed to automate the import process
<$button>
Import images
<$action-sendmessage $message=“tm-import-tiddlers” $param={{JsonImportList}}/>
</$button>
Unsurprisingly, it does not import the images; instead tiddlers with the full path as their title are created.
I assume that the JSON array must have just the image file names and not the full paths, but how do incorporate the path to the files into the above code?
Can anyone help.
Cheers, Rob