Added to TW-Scripts

On Tuesday, January 28, 2020 at 3:33:28 PM UTC+3:30, bimlas wrote:
>
> Ü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/104359f2-45d8-462d-a140-6fbf47ba4a83%40googlegroups.com.

Reply via email to