Is there a tool for linking to a specific part of a tiddler?

113 views
Skip to first unread message

si

unread,
Mar 18, 2021, 1:17:27 PM3/18/21
to TiddlyWiki
So for example I might have a tiddler like this:

title: My tiddler
text:
{{Section 1}}

{{Section 2}}

And be able to create a link like [[My tiddler##Header 2]] that will open "My tiddler", but specifically focussed on "Section 2".

David Gifford

unread,
Mar 18, 2021, 1:37:43 PM3/18/21
to TiddlyWiki
If it is for something you are going to publish online as a static, use html IDs before each section:

<span class="yourclass" id='yourID'>YourSectionHeader</span>

{{Your transcluded tiddler f}}

Then, create links to the section like this:

<a href='#yourID' class='tc-btn-invisible tc-tiddlylink' >Your section header</a>

I used this set up for this long article in Spanish: https://giffmex.org/wiki/apocrifos.at.html

Note that this won't work on your local file, only on statics, since TiddlyWiki tiddlers use the IDs. Someone else can chime in with other options, and I will be all ears.

Saq Imtiaz

unread,
Mar 18, 2021, 5:18:32 PM3/18/21
to TiddlyWiki

si

unread,
Mar 18, 2021, 6:29:00 PM3/18/21
to TiddlyWiki
Thanks a lot to you both - that's exactly what I was looking for.
Reply all
Reply to author
Forward
0 new messages