[TW5] Internal Links Grouped By Tiddler

89 views
Skip to first unread message

Tobias Beer

unread,
Nov 16, 2014, 6:33:26 PM11/16/14
to tiddl...@googlegroups.com
As an exercise for using the list widget I am trying to generate a list displaying all tiddlers that have internal links and their internal links as a definition list:

;tid A
:link 1
:link 2
;tid B
:link 3
:link 4


I tried the following but I find myself unable to determine properly whether a tiddler actually has links and to remember its title using a wikitext variable...

<dl>
<$list filter="[all[tiddlers]]">
<dt>
<$set name="tid" value={{!!title}}/>
<$list filter="[all[current]links[]first[]]">
<$link to=$(tid)$>$(tid)$</$link>
</$list>
</dt>
<$list filter="[all[current]links[]]">
<dd><$link to={{!!title}}><$view field="title"/></$link></dd>
</$list>
</$list>
</dl>

Also, once working, would this also be possible for external links?

Best wishes, Tobias.

Tobias Beer

unread,
Nov 17, 2014, 5:22:40 AM11/17/14
to tiddl...@googlegroups.com
I guess this question posted before is related...

Best wishes, Tobias.

Tobias Beer

unread,
Nov 17, 2014, 1:24:37 PM11/17/14
to tiddl...@googlegroups.com
I worked it out based on the code of the list-links macro in...


I developed a custom macro called backlinks...


Here is the final result, see last example...


Best wishes, Tobias.
Reply all
Reply to author
Forward
0 new messages