So, it turns out this solution does NOT work for toc-tabbed-internal-nav 
and toc-tabbed-external-nav

Adding this point here (in addition to at talk.tiddlywiki.org) because this 
thread is newer, AND someone hitting their head against the wall wondering 
why it's not working might feel a bit more sane if the issue is flagged.

Eric, if you happen to have a workaround ;) ...
On Thursday, January 26, 2023 at 7:34:38 PM UTC-5 Eric Shulman wrote:

> For the first problem (excluding items tagged with "Todo"), try this:
> ```
> <$set name="todo" filter="[tag[Todo]]">
> <div class="tc-table-of-contents">
> <$macrocall $name="toc-selective-expandable" tag="ML" sort="sort[created]" 
> exclude=<<todo>> />
> </div>
> </$set>
> ```
> Notes:
> * The `$set` widget gets the list of all tiddlers tagged with "Todo" and 
> stores it in the "exclude" variable
> * `<div class="tc-table-of-contents">` applies the TWCore pre-defined 
> styles to suppress the "numbered bullet item" display
> * Using the `$macrocall` widget instead of the 
> `<<toc-selective-expandable ... >>` macro syntax allows you to pass the 
> value of the "exclude" variable as a parameter
>
> To fix the second problem (where the root tag contains an apostrophe), 
> enclose the root tag in double quotes:
> ```
> <<toc-selective-expandable "Cauchy's Integral">>
> ```
> * The `$macrocall` syntax will also handle the second problem , since all 
> the parameter values are already enclosed in double quotes.
>
> Let me know how it goes...
>
> enjoy,
> -e
> On Thursday, January 26, 2023 at 3:32:33 PM UTC-8 jaroslawb...@gmail.com 
> wrote:
>
>> Hello! I am new user of TiddlyWiki, I work on Windows, Google Chrome and 
>> have a problem when creating Table of Contents. 
>>
>> The following code works for me:
>>
>> <<toc-selective-expandable 'ML' sort[created]>>
>>
>> I obtain list of tiddlers tagged *ML*, which is sorted by creation date. 
>> Amazing!
>>
>> But.......  2 things:
>>
>> 1) I want to be able to customize this list e.g. ''tiddlers with tag *ML*, 
>> but without tag *Todo*'' etc. So filter notation would be awesome
>> 2) I run into a problem when name of tag tiddler has apostrophe e.g. 
>> *Cauchy's 
>> Integral, *then I am unable to create list of this tag using standard 
>> Table of Contents notation (hence again need of filter notation)
>>
>> So what also works for me is that:
>>
>> <<toc-selective-expandable [[ML]]>>
>>
>> but I don't seem to be able to do *anything else* to that. What code 
>> lines* do not work* for me:
>>
>>
>>    - <<toc-selective-expandable [tag[ML]]>>
>>    - <<toc-selective-expandable [[ML]sort[title]]>>
>>    - <<toc-selective-expandable [tag[ML]sort[title]]>>
>>    - <<toc-selective-expandable  [tag[ML]!tag[Todo]  >>
>>    - <<toc-selective-expandable [tag[ML]tag[Todo]>>
>>    
>> All of the above commands don't produce a thing and I really wish they 
>> worked.
>>
>> I would be really really thankful for help, because I love TiddlyWiki. 
>> And also I'm sorry if that's stupid thing to ask or wrong place to post 
>> such quesion - I am absolute begginer. If that's the case please tell me 
>> what should I do instead. 
>>
>> Have a great day!
>>
>>
>>
>>
>>
>>
>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f974630a-63be-4cae-8a1b-0c4d65a73dc2n%40googlegroups.com.

Reply via email to