Get backlinks from fields

118 views
Skip to first unread message

Jon Dyer

unread,
Apr 24, 2021, 12:50:07 AM4/24/21
to TiddlyWiki
Tiddler A links to Tiddler B, but only in a custom field, not in the main text body. I have backlinks showing on every tiddler, a la Stroll, but the backlink[] operator does not pick up on links in fields, apparently. Any ideas about how to go about making those appear? Am I going to have to mess with the core JavaScript that indexes backlinks? Would prefer not to...

Thanks in advance!

Charlie Veniot

unread,
Apr 24, 2021, 1:02:53 AM4/24/21
to TiddlyWiki
G'day,

When the relink plugin is installed, that adds a "Relink References" tab to a tiddlers "information".

That shows "The following tiddlers contain fields, links, macros, transclusions, or widgets referencing this one."

Relink might provide a way for you to get what you're looking for.

Give it a spin.

Install the relink plugin, then add the following line in the text of Tiddler B:

{{||$:/plugins/flibbles/relink/ui/TiddlerInfo/References}}

Charlie Veniot

unread,
Apr 24, 2021, 1:21:24 AM4/24/21
to TiddlyWiki
Continued/elaborated/expanded in a separate thread:  Just a neat use of Relinks "References" feature

Jon Dyer

unread,
Apr 24, 2021, 1:42:44 AM4/24/21
to TiddlyWiki
This is so helpful, thanks very much! Currently experimenting with your recommendation in that thread, something like:

<$list filter="[relink:references<currentTiddler>!is[system]!title[$:/StoryList]sort[title]]"/>

Unfortunately it isn't giving me what I expected (maybe <currentTiddler> isn't set correctly). But I'm sure I'll figure it out soon! 

Charlie Veniot

unread,
Apr 24, 2021, 10:44:25 AM4/24/21
to TiddlyWiki
If that bit of TiddlyWiki code is in some tiddler (let's just say tiddler XYZ), and you are transcluding tiddler XYZ in other tiddlers ...

It may be simply the difference between transcluding via {{ XYZ }} versus transcluding via {{ || XYZ }} ?

Reply all
Reply to author
Forward
0 new messages