Hi, I am trying to show the a list of contents at the top of each tiddler. I am editing the $:/core/ui/ViewTemplate/body tiddler to accomplish that. I can’t figure out how to pass the currentTiddler as an argument to <<toc-selective-expandable>>
. I want the root of the tree to be the current tiddler for every tiddler.
Currently this is what I have :
More:
<$set name="variable" value=<<currentTiddler>>>
<$let toc-open-icon="$:/core/images/fold-button" toc-closed-icon="$:/core/images/folder">
<div class="tc-table-of-contents">
<<toc-selective-expandable <<variable>>>>
</div>
</$let>
</$set>
Any help would be greatly appreciated.
[Edited] To wrap <<toc-selective-expandable>>
in single backticks, so it is readable eg “<>” is not.