$(currentTiddler)$ in TOC stopped working??

73 views
Skip to first unread message

HC Haase

unread,
Feb 25, 2019, 4:43:59 AM2/25/19
to TiddlyWiki
Hi

For my index tiddlers I normally use the toc macro with the "current tiddler" variable like this:

<<toc-selective-expandable  $(currentTiddler)$ "sort[title]">>


This work fine in my personal wiki, but after I updated another wiki (running in bob) that I manage to 5.1.19 it stooped working. It don't work on tiddlywiki.com either but it still work in my personal wiki (also 5.1.19). Any idea of what's going on?

S. S.

unread,
Feb 25, 2019, 7:03:11 AM2/25/19
to TiddlyWiki
Some non-backward compatible changes in 5.19

See: GitHub Issue #3333 : Unexpected variable expansion with set widget
AND this Google Groups discussion post

I think you have to now use the below or similar:
<$macrocall $name="toc-selective-expandable"  tag=<<currentTiddler>> sort="sort[title]"/>

Hope that helps.

HC Haase

unread,
Feb 26, 2019, 1:19:45 AM2/26/19
to TiddlyWiki
Thank you. it solved the problem.
Though I wonder why it still works in my personal wiki also running 5.1.19. I guess some plugin is blocking something... properly not good in the long run.

I must say, this is not an elegant solution if this is the new way of using TOC. it makes the TOC macro a lot more cumbersome and difficult to remember. maybe it will be easier to just use lists.


Reply all
Reply to author
Forward
0 new messages