[TW5] Listing tiddlers tagged with the Current tiddler

113 views
Skip to first unread message

TonyM

unread,
Jun 25, 2017, 3:29:03 AM6/25/17
to TiddlyWiki
Folks,

On becoming a TW5 newby I have just spent ages trying to put something in side a tiddler to list all the tiddlers tagged with its title, and then copy this into multiple tiddlers. I just cant work it out with all the partial references to currentTiddler, titles etc,,,

In the tiddler MyTid this works

<$list filter="[tag[MyTid]!sort[title]]"/>

But is it possible to replace MyTid in the filter to use the current tiddler name so the same code will also work in MyOtherTid?

I would not ask but I am going crazy, something in the documentation is confusing me (more than once), if I can understand why I will try and contribute to the documentation.

Thanks in advance
Tony

 

Birthe C

unread,
Jun 25, 2017, 3:54:12 AM6/25/17
to TiddlyWiki
<$list filter="[tag<currentTiddler>!sort[title]]">

</$list>

http://tiddlywiki.com/#Introduction%20to%20filter%20notation
In the bottom of the tiddler.

Birthe

TonyM

unread,
Jun 25, 2017, 4:15:45 AM6/25/17
to TiddlyWiki
Thanks

I though I tried that, but perhaps something else was wrong when I did it more than once.

Arggh
Tony

ste...@gmail.com

unread,
Jun 25, 2017, 6:47:04 PM6/25/17
to TiddlyWiki
Hi Tony, 


On Sunday, June 25, 2017 at 9:29:03 AM UTC+2, TonyM wrote:
 
On becoming a TW5 newby I have just spent ages trying to put something in side a tiddler to list all the tiddlers tagged with its title, and then copy this into multiple tiddlers. I just cant work it out with all the partial references to currentTiddler, titles etc,,,

I put the following code in a new tiddler and tagged it with "$:/tags/ViewTemplate":

<hr noshade color="silver" size=1>


<div class="tc-table-of-contents">


<
<toc-selective-expandable '$(currentTiddler)$'>>


</div>

This will even work recursively. 

Caveat: Due to the tag $:/tags/ViewTemplate, this is going to appear in every tiddler.

Cheers,

Stef

ste...@gmail.com

unread,
Jun 25, 2017, 6:56:05 PM6/25/17
to TiddlyWiki
On Monday, June 26, 2017 at 12:47:04 AM UTC+2, ste...@gmail.com wrote:

This will even work recursively. 

For clarification: You'll get a tree in which all the branches can be expanded and collapsed, like here http://tiddlywiki.com/#Example%20Table%20of%20Contents%3A%20Selectively%20Expandable, but starting with the current tiddler. 

~~Stef

TonyM

unread,
Jun 25, 2017, 11:51:31 PM6/25/17
to TiddlyWiki
Thanks Stef,

Very nice

That works well in this single purpose tiddlywiki, Enter once, appears everywhere is helpful

Tony
Reply all
Reply to author
Forward
0 new messages