On Mar 11, 9:52 am, EduardWagner <[email protected]> wrote:
> I'm looking for a workaround for relative linking to files withtiddlyweb.
> I want to be able to use a local stored "save as" tiddlywiki on my
> laptop to work on travel,
> but i can't use the linked documents, because they are absolute linked
> to "/static/..."
> and i don't want to be always online via vpn!
>
> So maybe this would be possible if we use an apache webroot fortiddlyweb?
> There i hope i could save a local stored version of the wiki and copy
> the relevant filesystem to my lap, so
> i can work with relative linked dokuments, like "./static/..."

The issue with any solution that relies on relative links is the
question "relative to where". If you access your tiddler content
always from the same url, then it would be possible to create a
location in Apache which is "./static" relative to that URL, but if
you want to make use of multiple recipes or bags, this then goes a bit
awry.

I can think of several ideas, none of which are yet implemented that
might be able to help the situation:

* Instead of using documents served by the static plugin, instead use
binary tiddlers: put the documents in Tiddlers[1].
* Make a different static plugin that works like the existing one but
instead of using a route of /static/{some stuff} make it /{anything}/
static/{somestuff} and then use relative ./static links in your
tiddlers.
* Adjust the handling of the download=<filename> query in tiddlyweb/
web/sendtiddlers so rather then sending the raw tiddlywiki file it
made an archive which included the necessary files from static.

Of these the second is probably the easiest to make happen, but I'm
not sure what the implications would be.

I hope this is of some help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to