[TW5] Altering position of opened link in SubStory

53 views
Skip to first unread message

Jon

unread,
Dec 14, 2018, 1:45:28 AM12/14/18
to tiddl...@googlegroups.com
Hi,

I notice from the docs that it should be possible to alter where a link opens in a substory by changing the reference in the Navigator widget.

It appears that by default, links open at the bottom of the tiddler (bottom of 'story river'?) which, if it's a bit long, is off the screen (I'm using Zoomin view).

I'd like the links in a tiddler to open directly underneath themselves - although not sure if this is one of the options described in the docs.

If it's possible, which bit of the Navigator widget would need to change for this?

Regards
Jon

BurningTreeC

unread,
Dec 14, 2018, 2:31:06 AM12/14/18
to TiddlyWiki
Hi Jon,

the navigator widget has two attributes that can change that behavior: openLinkFromInsideRiver and openLinkFromOutsideRiver

openLinkFromInsideRiver affects links clicked within a tiddler inside the story (or substory) river. this can be top (top of story), bottom (bottom of story), above (above the tiddler containing the clicked link) or below (below the tiddler containing the clicked link)

openLinkFromOutsideRiver affects links and buttons outside the story and can be "top" or "bottom"


the navigator widget in the default pagetemplate transcludes two configuration tiddlers ($:/config/Navigation/openLinkFromInsideRiver, $:/config/Navigation/openLinkFromOutsideRiver) so that that behavior can be configured in the ControlPanel under Settings -> Tiddler Opening Behavior. If you want the same behavior like in your default story river, you can also just transclude those tiddlers ( <$navigator ... ... openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} ... > ) ... if not, just use openLinkFromInsideRiver="above|below|top|bottom" and so on

Jon

unread,
Dec 14, 2018, 9:08:37 AM12/14/18
to tiddl...@googlegroups.com
Thanks for your detailed reply.

I didn't know you could do this in the control panel and played around with the tiddler opening behaviour, but unfortunately I couldn't produce any changes  (after saving and re-loading).

However, looking at the options, there doesn't seem to be one that would cover what I want anyway, which is that the link opens beneath itself rather than opening at the bottom of the tiddler.

Regards
Jon
Reply all
Reply to author
Forward
0 new messages