Wikitext navigator and TWPub

Hi @jeremyruston ,

I’d be really interested in how that solution works. I know I’d have to look into the corresponding tiddlers on twpub-tools.org and I already tried to get an idea how your navigation mechanism works but I’m unable to follow where it’s used on that page and how it can be implemented for - say - the standard tiddlywiki.com layout

I believe there are more people interested in the workings of such a “wikitext navigator”, and I would be very interested in building one for my own purposes.

Do you have some hints that allow getting a basic understanding of the inner workings?

Kind regards,
Simon

@BurningTreeC Jeremy was referring to the anchor links technique, not the one in TWPub.

For TW Pub, refer to these tiddlers:

Page layout:

Story layout:

Navigator (as wikitext macro):

1 Like

Thank you @saqimtiaz , and thank you for splitting this into a new Post

At the moment, the wikitext navigator allows arbitrary parameters to be associated with a navigation, as well as the target tiddler title. The plan is to make one of the parameters be an optional anchor link within the target tiddler. I’m hoping to be able to unify navigation within TWPubs with navigation within tiddlers.

I have a stupid question about this wikitext-navigator implementation:

Where and how does it trigger a scroll? I just don’t get it

Is there a specific behaviour in TWPub that you can point out - preferrably with steps to reproduce or a video/image illustration - that you wish to understand the implementation of?

I believe you are operating under some misassumptions that are leading you astray. As I clarified earlier, the alternative technique for scrolling that has been mentioned is that of using anchor links: https://tiddlywiki.com/#Anchor%20Links%20using%20HTML

As Jeremy mentions above, the wikitext navigator might be extended to optionally support navigation to a specific anchor within a tiddler. It does not as of this moment support navigation within tiddlers.

Thanks for this example
When I tested, it seemed, that the example often jumps slightly too far so that the referred header is just offscreen above. Is there a way to cure that?

I believe that is due to the top menu bar plugin which obscures the heading being navigated to. See [BUG] Anchor link targets "hide" under menu bar · Issue #5150 · Jermolene/TiddlyWiki5 · GitHub

I belive this s similar to setting the top for sticky titles

SeeSee $:/themes/tiddlywiki/vanilla/sticky and set Top to 40px as an example