Add option to hide (start) pages
Issue #10
new
I know you can hide pages in the DokuWiki config itself, however this will also exclude pages from search. But there are also pages you may want hide in the AcMenu that should be searchable. An example for this are the start-pages that by default are displayed twice in AcMenu as a folder/namespace and as a child. I would recommend a plugin-specific hide-config field for this usecase similar to the hidepages field of the dokuwiki config.
As a quickfix I hardwired the start-pages like this:
// syntax.php
private function _tree($base_ns, $level) {
...
$namepage = basename($file, ".txt");
...
if (isHiddenPage($id) == false && $namepage != 'start') {
Comments (7)
-
repo owner -
repo owner Maybe, what you are asking for will be implemented inside DokuWiki https://github.com/splitbrain/dokuwiki/pull/2060
-
reporter Thank you for the update!
-
repo owner - marked as major
-
repo owner - changed version to v1.0
-
repo owner - removed version
- marked as minor
-
repo owner - changed component to interface
- Log in to comment
Would you hide pages a) only to your visitors or b) even to your self?
If a), I think ACL Managment con solves better this issue, because i) it's integrated in DokuWiki, hence I don't need to add complexity at the plugin, ii) it offers a graphical interface, iii) it gives you more control on who can read/edit and on what namespaces/pages can do that.
If b), ACL cannot hide pages from the admin (even if the admin itself could create and use another user, maybe with name Admin) but in this case I would ask why or in what scenario one would create pages and then hide them or make them hardly reachable (I mean using only the search box or the sitemap - the one at the url
?do=index
).