I've submitted a `[BUG]` issue on GitHub: https://github.com/Jermolene/TiddlyWiki5/issues/7261
The writeup for this issue includes some minor code changes to `$:/core/macros/toc` that will enable support for the use of the `exclude` parameter with `toc-tabbed-internal-nav` and `toc-tabbed-external-nav`. Attached is a JSON file containing the modified `$:/core/macros/toc`, which I have tested on https://TiddlyWiki.com On Friday, February 10, 2023 at 4:15:39 PM UTC-8 springer wrote: > 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/0ee80623-a729-4c42-9f45-2ba564968a1fn%40googlegroups.com.
$__core_macros_toc.json
Description: application/json