[TW5] Heard it on the hangout: How to list referencing tiddlers

132 views
Skip to first unread message

Chris

unread,
Dec 20, 2013, 6:35:58 AM12/20/13
to tiddl...@googlegroups.com
All,

I was delighted by a question/answer exchange between Jim Weaver and Jeremy on Hangout #25: http://www.youtube.com/watch?v=tGV5F2Gj_mE

Jim's questions concerned the desire to list tiddlers which link to the current tiddler. Of course one can always get that information from the "References" tab of the "info" section of a tiddler display, but Jim wanted the list of referencing tiddlers listed explicitly for his specific use of TiddlyWiki. 

The answer from Jeremy was simple but also quite instructive:

1. Create a tiddler containing the following list macro text:

<$list filter="[is[current]backlinks[]sort[title]]" emptyMessage="No tiddlers link to this one" template="$:/core/ui/ListItemTemplate"></$list>

2. Tag the tiddler with the tag: $:/tags/ViewTemplate

3. Give the tiddler a name, any name, maybe something like "References" or "BackLinks".

By tagging with "$:/tags/ViewTemplate" this tiddler gets transcluded onto the end of every tiddler which you view. 

The text of the tiddler is a straight copy-paste of the macro call used in the standard "References" tab, which lists all backlinks from the current tiddler.

As pointed out on the hangout, you can always add some nice formatting around the <$list... macro to create something even nicer.

Cheers ~ Chris.

Peter Merel

unread,
Aug 9, 2015, 3:52:35 AM8/9/15
to TiddlyWiki
I like this but would prefer a way to just get the Title link to open the info/References pane. That would look a lot better ... ?

Cheers,
Pete. 

PMario

unread,
Aug 9, 2015, 2:11:40 PM8/9/15
to TiddlyWiki
On Sunday, August 9, 2015 at 9:52:35 AM UTC+2, Peter Merel wrote:
I like this but would prefer a way to just get the Title link to open the info/References pane. That would look a lot better ... ?

Reply all
Reply to author
Forward
0 new messages