Üdv a klubban! :D
Create a tiddler of any name and add a $:/tags/ViewTemplate tag with the
following content:
<$list filter="[all[current]tag[TableOfContents]]" variable="null">
<h3>Contents</h3>
<div class="tc-table-of-contents">
<$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>>/>
</div>
</$list>
I don't know exactly what code you were trying to try, but these are the
most likely errors:
- The 'list' widget <https://tiddlywiki.com/#ListWidget> overwrites the
'currentTiddler' variable with the current element of the filter result, so
you might want to specify 'variable = "null"' if you use it just to check
the value of a condition.
- If you tried the "<<toc-selective-expandable tag:<<currentTiddler>>
>>" format, the problem was with the syntax: you cannot use a macro in a
macro call, you have to use "macrocall" widget
<https://tiddlywiki.com/#MacroCallWidget>.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/7e909061-be4e-49c3-a036-2ff8d63b83f0%40googlegroups.com.