Potential bug or am I using the wrong TOC method?

Here is my TOC usage:

<$macrocall $name=toc-selective-expandable tag="TableOfContents" sort="!is[shadow]sort[section-order]" exclude={{$:/config/cls/mk/menu/hide}} />

When there is a tiddler exclusion that matches a menu item that is the first child item of a parent, the parent does not have the expand control (greater than sign), though it still has children items.

Experienced on 5.3.3

Craig

This might be the same issue tracked down by @pmario on Feb 11 (after 5.3.3 release) here:

I’m not sure on the status of whether it’s been resolved in a prerelease since that time.

1 Like

That’s not fixed yet.

@Springer @pmario Thank you. I see the error…

In tiddler: $:/core/macros/toc

There are two instances of the following filter:

[all[current]tagging[]$sort$limit[1]] -[subfilter<__exclude__>]

We are limiting the filter to 1 before exclusion… this will return the first entry that we then exclude.

This should be changed to:

[all[current]tagging[]$sort$] -[subfilter<__exclude__>] +[limit[1]]