Hi Ivan,
On Sun, Nov 29, 2020 at 06:04:35AM -0800, IvanPsy wrote:
> since I heavily rely on images and PDFs, but I don't want to overload my
> wiki, I'd like to keep such files external, maybe under a subfolder, and
> embed such files in my Tiddlers when needed.
>
> Is it possible?
> How?
It is indeed. You want to use the `_canonical_uri` special field which achieves
exactly this. See
https://tiddlywiki.com/static/How%2520to%2520embed%2520PDF%2520and%2520other%2520documents.html.
Additionally have a look at the External Attachments Plugin, which allows
dragging & dropping such files into the wiki.
https://tiddlywiki.com/static/External%2520Attachments%2520Plugin.html
> Another thing: is it possibile to indicate a relative path to that subfolder,
> so that I can keep the structure if I move the whole wiki and its subfolders?
> How?
Yes, simply put them as relative into the `_canonical_uri` field. The plugin I
quoted above does this by default.
I have a `files` sub-folder, and all my files I simply include with the
canonical URI set to "files/my-attachment.pdf". Works like a charm with
TiddlyDesktop and also Quine on mobile.
Best,
Patrice