DokuWiki

It's better when it's simple

User Tools

Site Tools


config:hidepages

This is an old revision of the document!


Configuration Setting: hidepages

This option accepts a Regular Expression to filter certain pages from all automatic listings (RSS, recent changes, search results, index, sitemap). This is useful to exclude certain pages like the ones used in the sidebar templates. The regexp is matched against the full pagename with a leading colon. If it matches, the page is assumed to be a hidden one. This is a rather cosmetic option, not a security one.

  • Type: String
  • Default:

Example

Here's complex example excludes :reports:template, :reports:sidebar and their subpages:

$conf['hidepages'] = '^:reports:(?:template|sidebar)';

See also

Discussion

Please, could you provide the syntax to use for hiding the sidebar file? I tried a lot of things in the hidepages option but he sidebar always. I tried sidebar, sidebar$, ^(?::sidebar)$ but none of them works. Thanks for your help.

Use ACL to hide the sidebar file in listings. Set permission for group ALL to “none”. The sidebar will still work.

Same to me.. Nothing works :-( item “sidebar” still in menu.

config/hidepages.1439375449.txt.gz · Last modified: 2015-08-12 12:30 by 95.153.133.99

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki