display backlinks

471 views
Skip to first unread message

Christin Wixson

unread,
Mar 19, 2021, 4:37:30 PM3/19/21
to TiddlyWiki
Hi, I’m back with another super basic question.  My new TW is growing rapidly (I just have a basic, out of the box TW) and I’m interested in having the Backlinks display on each tiddler, maybe at a bottom. Not picky about where really, just something more visible than clicking into the info menu.

I’ve seen some TW adaptations that do this (Stroll? Drift?), but also they seem like they do a lot of other things too.  Because I am not tech savvy, I’m worried about using something more complex that I don’t really understand.  (I also don’t understand if it’s too late to try those now that I've made a couple hundred tiddlers.)  What would you recommend?

Many thanks,
Christin

Mark S.

unread,
Mar 19, 2021, 5:40:24 PM3/19/21
to TiddlyWiki
You can make a tiddler tagged as $:/tags/ViewTemplate and populated like:

<hr/>
<h3>Backlinks</h3>
<<list-links "[all[current]backlinks[]]">>

Now backlinks will display for every tiddler at the bottom. You will immediately think of improvements you could make and ... pretty soon you'll end up with Stroll ;-)

PMario

unread,
Mar 19, 2021, 5:54:11 PM3/19/21
to TiddlyWiki
Hi,
You can drag & drop import this tiddler. It contains this:

A tiddler named: $:/_/ViewTemplate/BacklinksFooter   ... tagged: $:/tags/ViewTemplate

<$list filter="[all[current]backlinks[]limit[1]has[title]]" variable=ignore>
<hr>
Backlinks: <$list filter="[!is[system]all[current]backlinks[]sort[title]] -[is[current]]"><$link /> | </$list>
</$list>


The first line is responsible to "only show the footer if the tiddler has backlinks"
Then a horizontal line
The backlinks "list generator"

have fun!
mario
$ ___ViewTemplate_BacklinksFooter.json

PMario

unread,
Mar 19, 2021, 5:56:10 PM3/19/21
to TiddlyWiki
Hi Christin,
If you need more info about Mark's or my code, just let us know.
-m

Christin Wixson

unread,
Mar 20, 2021, 7:34:38 AM3/20/21
to TiddlyWiki
That was so easy!  This dollar sign sorcery is very impressive.  And what is this wholesome corner of the internet where I ask stupidly basic questions and instantly get kind, comprehensible answers? :)

Thank you both *very much*!

Cheers,
Christin

Charlie Veniot

unread,
Mar 20, 2021, 11:41:57 PM3/20/21
to TiddlyWiki
Nah nah nah.  Every basic question (including recurring/repeat question), is always an opportunity to see any thing in a brand new light.

Same as any TiddlyWiki use case, or sample approach to solving something, etc. etc.

All of these are stuff of the "some good" kind !

Reply all
Reply to author
Forward
0 new messages