need a macro to create links to a specific line in another tiddler. is that possible?
G’day,
Without knowing exactly what you are trying to do, I would suggest:
It might be a good idea for that line of text to be excised into its own tiddler, and displayed in the original tiddler via transclusion. Then you create links to that particular text via linking to the new tiddler that text belongs to.
I say this because it is the safest way to maintain that link if for some reason that bit of text later changes .
Something like that. Maybe. Depends a lot on the purpose of the link.
Might be easier with a few sample tiddlers to play with.
thank you will try it out
thanks that is exactly what i was looking for
The beauty of that text being excised is that you can now wrap that bad boy in all sorts of meta data via fields and tags.
Yeah, I’m a sucker for to-the-gills information componentization.
This looks like an interesting read
My main problem in doing this is that it still feels like cluttering. keep ending up with too many tags and fields that are too specific so still working on it. hopefully ill get there eventually
Yeah, I tend to use tags and fields very sparsely, much preferring data tiddlers for many things.
Despite data tiddlers seemingly having far from universal appeal.
If only all of my quirky features made me cute and adorable. Not so much …
Seems we can’t use https://tiddlywiki.com/#Anchor%20Links%20using%20HTML##heading-01 to goto an anchor of https://tiddlywiki.com/#Anchor%20Links%20using%20HTML.
And [[Anchor Links using HTML##heading-01]]
does not work too.
The support for anchor links within tiddlers is not currently properly integrated with the navigation mechanism. The core support is sufficient to lash up some special purpose solutions, but in the future I’d definitely like to get things better integrated. My current thinking is to introduce subtiddler anchors at the same time as we transition to a revision of the navigator widget implemented as pure wikitext. I’ve been exploring that architecture in my work on TWPub: GitHub - TWPUB/TWPUB-Tools: Tools for creating and viewing TWPUB files
@jeremyruston would it be out of the question optionaly generating ID values or injecting it in wikitext so its set at render?
Perhaps even only on headings providing a manual id
!!=uniquid head
<h2 id=uniquid>head</h2>
Or even
<$let id=uniqueid>
! Head
</$let>
Then leave it to the designer to open the tiddler and use the anchor in a html a tag.
I am suggesting a method similar to
!!.class
Just a thought should it provide inspiration.