Hello BTC,
 Have you tried this in TW 5.1.18pre? It seems the exclude parameter does 
not work anymore!
I noticed the macro has been changed as below:

\define toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path)
<$vars tag=<<__tag__>> sort=<<__sort__>> 
itemClassFilter=<<__itemClassFilter__>> excluded="""[enlist<__exclude__>] 
-[<__tag__>]""" path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>
  <ol class="tc-toc toc-selective-expandable">
    <$list 
filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] 
-[<__tag__>] -[enlist<__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


Would mind to have a look at https://tiddlywiki.com/prerelease/ ?


Mohammad



On Thursday, October 4, 2018 at 10:07:31 AM UTC+3:30, BurningTreeC wrote:
>
> 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/c0913060-f33f-4bcb-a40e-4441e0cf6a46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to