Sorry, I missed some stuff for that one.

In the my-toc-selective-expandable macro you need to replace the 4th line 
with


<$list filter="[all[current]toc-link[no]]" variable="ignore" 
emptyMessage="<<my-toc-linked-selective-expandable-body tag:'$tag$' 
sort:'$sort$' itemClassFilter:'$itemClassFilter$'>>">

and you also need to put this macro into your new tiddler (or edit it in 
$:/core/macros/toc)

\define my-toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter)
<$set name="toc-state" value=<<qualify 
"$:/state/toc/$tag$-$(currentTiddler)$">>>
<$set name="toc-item-class" filter="""$itemClassFilter$""" 
value="toc-item-selected" emptyValue="toc-item">
<li class=<<toc-item-class>>>
<$link>
<$list filter="[all[current]tagging[]limit[1]]" variable="ignore" 
emptyMessage="<$button 
class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>">
<$reveal type="nomatch" state=<<toc-state>> text="open">
<$button set=<<toc-state>> setTo="open" class="tc-btn-invisible">
{{$:/core/images/right-arrow}}
</$button>
</$reveal>
<$reveal type="match" state=<<toc-state>> text="open">
<$button set=<<toc-state>> setTo="close" class="tc-btn-invisible">
{{$:/core/images/down-arrow}}
</$button>
</$reveal>
</$list>
<<toc-caption>>
</$link>
<$reveal type="match" state=<<toc-state>> text="open">
<$macrocall $name="my-toc-selective-expandable" tag=<<currentTiddler>> 
sort="""$sort$""" itemClassFilter="""$itemClassFilter$"""/>
</$reveal>
</li>
</$set>
</$set>
\end

Where once again you replace the {{$:/core/images/right-arrow}} and 
{{$:/core/images/down-arrow}} lines with the closed and open images you 
want to use.

A tiddler with the required macros is here 
http://inmysocks.tiddlyspot.com/#Other%20TOC%20Macros
And for the moment there is a second tab in the menu called Second TOC that 
shows the resulting table of contents using the fa-folder and 
fa-folder-open icons from font awesome.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to