[Redirecting] Forward to external page when opening a Tiddler

35 views
Skip to first unread message

Der Shredder

unread,
Aug 14, 2020, 7:52:35 PM8/14/20
to TiddlyWikiDev
Hello everyone,

I aim to use a local TW5 as a knowledge base and interface to my document storage (PDF and HTML files). I would love to have the possibility to have some tiddlers that act like external links: If I link to them from other tiddlers, not the tiddler content should open, but an external URL (which might be specified via a 'field'). The advantage to just using an external link is that this tiddler could still have tags and other properties. For instance it could show up in a TableOfContents, but when I click that entry in the TOC, the external URL opens directly.

Is such a behavior possible, or do you have any hints for me how I might be able to achieve this? I could just put a single link as the tiddler content, but I would like to save the additional clicks.

I recognize that a problem might be how to edit the tiddler again when the redirection is automatically done. That is a good question. Maybe each such "redirection tiddler" could instead have a corresponding shadow tiddler that contains the redirection URL?

I'm thankful for any help,
Shredder

TonyM

unread,
Aug 15, 2020, 8:35:31 AM8/15/20
to TiddlyWikiDev
Shredder,

Consider having an icon listed just before the tiddler name that if clicked is a link to the address in say the link field on the relevant tiddler. Basically remove nothing, add something.

I already know how to add buttons to lists of tiddlers, I can share how if you want. The easiest is a long side the 
<$link/>  or
<
<currentTiddler>>

Add a transclusion of the button
{{||$:/core/ui/Buttons/edit}} <$link/>

But of course you will add your "link" button.

  • Also A nice trick for external links is to consider allowing setting a "target" with the href as you can open similar links in the same/window and tab keeping the number of tabs low, I think shift or ctrl click, if not r-click on most browsers overrides the behaviour into a new window.
  • Another may be to use the icon set on a tiddler, if available, otherwise a generic icon.
A smart design would allow both external and internal links to be honoured. It would be nice for example if clicking the link on a to do task it would open the to do task or project tiddler, that the task belonged, to rather than the actual tiddler.

This is such a good idea, I may do it myself if no one including yourself does it. :)

Regards
Tony

TonyM

unread,
Aug 15, 2020, 8:39:41 AM8/15/20
to TiddlyWikiDev
Post script,

If links could contain filters, a click would open all tiddlers in that filter, and/or their external links, you could open multiple tiddlers/tabs.

Regards
Tones
Reply all
Reply to author
Forward
0 new messages