Martin,

On tiddlywiki.com for toc selective expandable we see

<div class="tc-table-of-contents">
<<toc-expandable "Contents">>
</div>

That is it calls the macro toc-expandable

In advanced search Shadows we find this is in 
$:/core/macros/toc

Which on editing we see the definition

\define toc-expandable(tag,sort:"",itemClassFilter:" ",exclude,path)
<$vars tag="""$tag$""" sort="""$sort$""" itemClassFilter=
"""$itemClassFilter$""" excluded="""$exclude$ -[[$tag$]]""" path=
"""$path$/$tag$""">
  <ol class="tc-toc toc-expandable">
    <$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$] 
-[[$tag$]] $exclude$""">
      <$list filter="[all[current]toc-link[no]]" emptyMessage=<<toc-
expandable-empty-message>> >
        <$macrocall $name="toc-unlinked-expandable-body" tag="""$tag$""" 
sort="""$sort$""" itemClassFilter="""itemClassFilter""" exclude=<<excluded>> 
path=<<path>> />
      </$list>
    </$list>
  </ol>
</$vars>
\end

If you look in the define line you can see mention of parameter that appear 
not fully documented. and exclude is simply added to the end of the filter.

Perhaps trying providing your own exclude parameter, perhaps even to 
include something +[[tag]]

But I ask do you really want a TOC macro here, because the TOC requires 
each tiddler be tagged with a tiddler higher up in the tree, and eventually 
the root tiddler, is this still true when you try and exclude one of your 
tags?

Regards
Tony




On Wednesday, December 5, 2018 at 3:38:39 AM UTC+11, Martin Petersen wrote:
>
> Good evening, I am just starting to explore this wonderful piece of 
> ingenuity so bear with me when I ask a silly question:
>
> When I want to make a table of contents Tiddlly with the help of the 
> toc-selective-expandable command I can search for one tag but I fail to 
> combine two or more. Let’s say I have Tiddlys with the tag Company and some 
> of them have Text as another tag and some others have the tag Numbers (but 
> not the tag Text) and I would like to list only those Tiddlys with a 
> combination of the tags Company and Numbers (excluding those with the tag 
> Text). How do I do this and where is this documented?
> Thanks for your help.
>

-- 
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/19a55fda-d69d-4dc8-8ddf-37a5fcb773cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to