--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bf412d79-b1ae-48b8-b5f0-a2a359d86674%40googlegroups.com.
I'm wondering if there's a way that I redirect image links based on a path tiddler. This way I could manage images separately and just change the path when operating from a different platform. Pretty sure Eric had a plugin for something like that on the old TWC. That is, I could set the path tiddler, and all the images would look in a particular directory on the local hard-drive or use a separate server without having to change each and every link every time.
If TW on nodejs was meant to be a text-only system then someone should say so up front. It should be right in there with the nodejs documentation on tiddlywiki.com.
A workaround would be to provide condition-specific image file paths. Then you could use a second server or location to serve up images. Is there a plugin or technique that will change image paths on the fly, so that the base path can be changed depending on platform? (doesn't have to be changed automatically -- can happen manually).
Thanks!
Mark
On Saturday, May 9, 2015 at 3:59:06 PM UTC-7, PMario wrote:On Saturday, May 9, 2015 at 7:32:33 PM UTC+2, Mark S. wrote:I'm wondering if there's a way that I redirect image links based on a path tiddler. This way I could manage images separately and just change the path when operating from a different platform. Pretty sure Eric had a plugin for something like that on the old TWC. That is, I could set the path tiddler, and all the images would look in a particular directory on the local hard-drive or use a separate server without having to change each and every link every time.
If you want file server functionality, you need a file server software. ... That's how the web works. ... You can do what ever you want, to access files from a server directory. If there isn't a software on the server that is configured to send it to you, you get nothing.
Someone could extend the nodejs server, so it could handle files from subdirectories. .. But imo that doesn't make sense. ... There are existing solutions that are battle tested and are used from hundreds of million sites. ... So it doesn't make sense to reinvent the wheel and introduce security holes.
-mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4538a2aa-5e5b-46d5-8bd0-0a871853a615%40googlegroups.com.
Hi Mark,
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c38c95fd-f54f-4b6c-bd41-d363ed009cd5%40googlegroups.com.
Yes, all the work-arounds I suggested are currently doable. The problem with exporting images is that there isn't a reverse process for importing them (with embedded images) back into node.js.
Is there a known hook or method somewhere in the code that would let you change image links on the fly?
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/11c64d8a-308d-48c4-9983-05528b8792d8%40googlegroups.com.
\define img(img, img_url)
<a href="http://localhost:8084/$img_url$" target="_blank"><img src="http://localhost:8084/$img$"/></a>
\end