Table of content - reference title of current tiddler

45 views
Skip to first unread message

am ibr

unread,
Jan 7, 2022, 2:06:41 PM1/7/22
to TiddlyWiki
Hello,

I am using the TOC macro and would like to use the title of tiddler itself as the tag. So something like:
<<toc-expandable 'title of this tiddler' >>

How do I reference the title of the tiddler itself inside the macro ?
Thanks,

Amir

Mark S.

unread,
Jan 7, 2022, 3:13:25 PM1/7/22
to TiddlyWiki
You need to invoke the macro via the macrocall widget:

<$macrocall $name=toc-expandable tag=<<currentTiddler>> />

am ibr

unread,
Jan 7, 2022, 3:37:35 PM1/7/22
to TiddlyWiki
Thanks Mark!
Reply all
Reply to author
Forward
0 new messages