AcMenu does not hide namespaces
When creating a "hidepages" definition in DW config, AcMenu does hide pages but not (whole) namespaces, e.g. with
$conf['hidepages'] = '^:(sidebar|playground|wiki)';
it hides the "sidebar" but still shows "playground" and "wiki". Added 2 lines of code, see diff attached.
Comments (4)
-
repo owner -
repo owner I tried to reproduce this issue but:
1)
$conf['hidepages'] = '^:(sidebar|playground|wiki)'
works as expected, that is the pages:sidebar
,:playground.*
and:wiki.*
are not shown though the namespaces:playground
and:wiki
remain visible in the menu.I get the same behaviour if I watch in the sitemap page (I mean this page https://www.dokuwiki.org/index).
I've said that "it works as expected" because the hidepages option works on pages so it is fair that namespaces are not hidden.
2) If you want to hide even the namespaces you should set your ACL, but this works for all except the administrator, who will continue to see them.
Referring to your solution it seems to me that you want to hide even the namespace, which is a good idea. But if it is intended to solve a different behaviour from what I've described in point 1), then I need more info to reproduce the problem.
-
repo owner - changed status to closed
no further problems/feedback received
-
repo owner - marked as minor
- Log in to comment
Thanks for the signalling. Unfortunately, till the end of July I don't have any possibility to work on the plugin (no stable internet connection). I promise it will be fixed as soon as I can.