<div class="tc-table-of-contents">
<<toc "Contents" sort[title]>>
</div><div class="nr">
{{H 1}}
{{H 1-1}}
</div>\define toc-caption()
<$set name="tv-wikilinks" value="no">
<$transclude field="caption">
<$view field="title"/>
</$transclude>
</$set>
\end
\define toc-body(tag,sort:"",itemClassFilter,exclude,path)
<ol class="tc-toc">
<$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$] -[[$tag$]] $exclude$""">
<$vars item=<<currentTiddler>> path="""$path$/$tag$""" excluded="""$exclude$ -[[$tag$]]""">
<$set name="toc-item-class" filter="""$itemClassFilter$""" emptyValue="toc-item" value="toc-item-selected">
<li class=<<toc-item-class>>>
<$list filter="[all[current]toc-link[no]]" emptyMessage="<$link><$view field='caption'><$view field='title'/></$view></$link>">
<<toc-caption>>
</$list>
<$macrocall $name="toc-body" tag=<<item>> sort="""$sort$""" itemClassFilter="""$itemClassFilter$""" exclude=<<excluded>> path=<<path>>/>
</li>
</$set>
</$vars>
</$list>
</ol>
\end
\define toc(tag,sort:"",itemClassFilter:" ")
<<toc-body tag:"""$tag$""" sort:"""$sort$""" itemClassFilter:"""$itemClassFilter$""">>
\end\define toc-body(tag,sort:"",itemClassFilter,exclude,path)
<$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$] -[[$tag$]] $exclude$""">
<$vars item=<<currentTiddler>> path="""$path$/$tag$""" excluded="""$exclude$ -[[$tag$]]""">
<$set name="toc-item-class" filter="""$itemClassFilter$""" emptyValue="toc-item" value="toc-item-selected">
<$list filter="[all[current]toc-link[no]]" emptyMessage="<h1><$view field='title'></h1><$transclude mode='block'/>">
<h1><$view field="title"/></h1>
<$transclude mode='block'/>
</$list>
<$macrocall $name="toc-body" tag=<<item>> sort="""$sort$""" itemClassFilter="""$itemClassFilter$""" exclude=<<excluded>> path=<<path>>/>
</$set>
</$vars>
</$list>
\end
list field of the parent tag tiddler, but I am not able to crack what should I change to get all of these tiddlers transcluded in given order.\define transclude_chapters(tag,sort:"",itemClassFilter,exclude,path)
<$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$] -[[$tag$]] $exclude$""">
<$vars item=<<currentTiddler>> path="""$path$/$tag$""" excluded="""$exclude$ -[[$tag$]]""">
<$set name="toc-item-class" filter="""$itemClassFilter$""" emptyValue="toc-item" value="toc-item-selected">
<$transclude mode='block'/>
<$macrocall $name="transclude_chapters" tag=<<item>> sort="""$sort$""" itemClassFilter="""$itemClassFilter$""" exclude=<<excluded>> path=<<path>>/>
</$set>
</$vars>
</$list>
\end
<<transclude_chapters "Table of Contents">><$list filter="[all[current]has[caption]get[caption]] [all[current]!has[caption]get[title]] +[reverse[]]"><div class="tc-table-of-contents"><<toc-selective-expandable "TableOfContents">></div></$list>I see in retrospect its confusing. I believe I was referring to a custom recursive function inside the list, I should not have placed the existing macro name there.
Perhaps start a new topic with what you after. I and others have learned a lot since then.
Regards
Tony