tiddlywiki.info : would a "includeFiles" property make sense?

40 views
Skip to first unread message

Charlie Veniot

unread,
Aug 10, 2021, 11:01:37 AM8/10/21
to TiddlyWiki
As I play around with TiddlyWiki on node.js, I had a thought ...

Say I have a folder somewhere with all of my camera pictures, and I want a particular file to be included in a TiddlyWiki, I'm thinking it would be pretty nice to add that to my tiddlywiki.info file, something like:

"includeFiles": [
    {"file": "home/picture/my_dog.jpg",
     "file": "home/documents/my_dog_pedigree.pdf"}
]

It would probably make more sense to have a file server for the files when dealing with a lot of files being included in a lot of TiddlyWikis, but I wonder if this kind of "includeFiles" thing would be useful in certain circumstances.

Or is there already a mechanism for doing this kind of thing? 

Saq Imtiaz

unread,
Aug 10, 2021, 12:41:50 PM8/10/21
to TiddlyWiki
tiddlywiki.files might do the trick: https://tiddlywiki.com/#tiddlywiki.files%20Files

I use them to load files from a subfolder of the wiki tiddlers folder. I do believe you could have a tiddlywiki.files file in a subfolder of tiddlers that then uses relative paths to files outside that the tiddlers directory.

Also note that if you create a files folder parallel to the tiddlers folder, any files in that files folder will be served by the integrated static file server at the path /files/<uri-encoded-filename>
Reply all
Reply to author
Forward
0 new messages