indexmenu icon indicating copy to clipboard operation
indexmenu copied to clipboard

Hide namespaces containing no visible pages?

Open GJRobert opened this issue 5 years ago • 1 comments

Hello,

as for now, hidden pages which are not visible to the current user, are also hidden in the Indexmenu of course. However, the containing namespace, even if all of its child pages are hidden, is still displayed and holding the place. Clicking on the "empty" namespace to try to open it would make Indexmenu to read the list of the pages and then return a null result, resulting in an empty namespace.

So how about hiding that "empty" namespace in the first place in the Indexmenu, so that the user will not even waste time on opening them?

(My situation is, the ACL is not blocking the namespace to the user, but the child pages are hidden due to there "draft" status (via plugin:publish), so it is indeed easily possible that all pages are hidden, but the namespace, since it's not hidden by ACL or skipped in Indexmenu settings, is still shown, finally rendering a useless and empty namespace.)

GJRobert avatar Aug 22 '20 07:08 GJRobert

I understand your UX issue. However, it is probably some puzzling to find an complete solution for this, because a lot of items are retrieved recursive (i.e. iterative per namespace) depending on the settings.

Klap-in avatar Jul 10 '21 14:07 Klap-in