>
> I use the toc-selective-expanable to create a table of contents for all
> tiddlers tagged with lecture
>
> <<toc-selective-expandable tag:"lecture" sort:"sort[caption]">>
>
> Some tiddlers belong to the lecture category also tagged with ignored. How
> can I exclude them in the macro toc-selective-expanable to exclude them
> in TOC?
>
>
> -Mohammad
>
Hi Mohammad,
This is the toc-selective-expandable code:
\define toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path)
<$vars tag="""$tag$""" sort="""$sort$"""
itemClassFilter="""$itemClassFilter$""" excluded="""$exclude$ -[[$tag$]]"""
path="""$path$/$tag$""">
<ol class="tc-toc toc-selective-expandable">
<$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$]
-[[$tag$]] $exclude$""">
<$list filter="[all[current]toc-link[no]]" variable="ignore"
emptyMessage=<<toc-selective-expandable-empty-message>> >
<$macrocall $name=toc-unlinked-selective-expandable-body
tag="""$tag$""" sort="""$sort$""" itemClassFilter="""$itemClassFilter$"""
exclude=<<excluded>> path=<<path>> >
</$list>
</$list>
</ol>
</$vars>
\end
As you can see if you look on top of it, it accepts an "exclude" attribute
this is the filter where your exclude filter would be used:
<$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$]
-[[$tag$]] $exclude$""">
If you want to exclude - say - all tiddlers tagged "bla" you pass
exclude:"-[tag[bla]]" or all tiddlers with the field "blu"
exclude:"-[has:field[blu]]"
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/9ff85e00-f5d0-42ec-86eb-c9fc0f528de9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.