Using a tw5 wik filei hosted on WebDAV as a self modifying index for files

65 views
Skip to first unread message

Timothy Sanders

unread,
Dec 5, 2016, 12:37:07 PM12/5/16
to TiddlyWiki
Has anyone thought of doing this?

There doesn't seem to be a good pattern that I know of for linking big external files to a wiki. I have a lot of big files, and I want to use a tw5 as a detailed interactive index that I can update in the browser.

If I were to throw an index.html file onto a WebDAV server with my collection of files, I could link directly to sub folders and file on the same server, and also update my descriptions of them on the wiki through the browser. And, I could also mount the WebDAV share to add or edit files. And there are WebDAV libraries in JavaScript that could let me potentially browse the WebDAV share through the browser.

So, a potential scenario would be:
Open https://mylibrary.homeserver.com/index.html (tw5 wiki)
PDFs files could be stored in https://mylibrary.homeserver.com/files/pdfs
I could mount that share external to the browser, to modify the files if I want. Or maybe I can use a plugin to PUT a file that I drop into that folder via a plugin (I believe I could do that, right?)
I could also enumerate the contents of /files/pdfs from a plugin using JavaScript and PROPFIND.

It would be amazing if I could drag a file into the tw5 interface, and have it be PUT into a folder on my webserver, and then have the irk interted into my wiki. And I could add entire folders by mounting the share (and tw5 could enumerate them). Also, the latest version of chrome supports uploading entire folders through the browser.

I've seen some for indexing photos and PDFs. But I haven't seen a way of doing it that I've really liked. Most people just use file:// urls, which are a problem because they have to be absolute path, and obviously they also have to be on the local machine.

Has anyone used a wiki as a front-end for a collection of files?

Has anyone thought of doing it like this?

Are there any potential problems I might not be seeing? The only thing that I see as a problem is the inefficiency of uploading the entire wiki to save it, especially as it gets big.

Mark S.

unread,
Dec 5, 2016, 5:42:08 PM12/5/16
to TiddlyWiki
This is one of the weaknesses in TW5 -- getting stuff into it linked as external files. It's a multi-step process no matter how you approach it. The most convenient way that I know of currently is to open a separate browser tab to browse your local file system. Then use the "local" mode of tiddlyclip plugin to add files as _canonical_uri tiddlers -- one at a time to your designated main tw file. I'm not sure if tiddlyclip works for chrome, and I'm also not sure if it will survive the impending code-switch in Firefox, but it works for now.

It seems to me that another way would be to use a javascript macro to convert a list of file names into _canonical_uri tiddlers. I've got code somewhere for doing that sort of thing.
 
HTH
Mark



On Monday, December 5, 2016 at 9:37:07 AM UTC-8, Timothy Sanders wrote:
Has anyone thought of doing this?

There doesn't seem to be a good pattern that I know of for linking big external files to a wiki. I have a lot of big files, and I want to use a tw5 as a It would be amazing if I could drag a file into the tw5 interface, and have it be PUT into a folder on my webserver, and then have the irk interted into my wiki. And I could add entire folders by mounting the share (and tw5 could enumerate them). Also, the latest version of chrome supports uploading entire folders through the browser.


Reply all
Reply to author
Forward
0 new messages