DokuWiki

It's better when it's simple

User Tools

Site Tools


config:hidepages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:hidepages [2017-07-04 13:05] 82.68.82.126config:hidepages [2024-01-25 22:16] (current) Aleksandr
Line 1: Line 1:
- ===== I am no genius, however I would suggest taking admin rights advice from this article is a bad idea.... ===== 
- 
 ====== Configuration Setting: hidepages ====== ====== Configuration Setting: hidepages ======
  
Line 16: Line 14:
  
 Another example. In this case the contents of ''/data/pages'' is Another example. In this case the contents of ''/data/pages'' is
-<code bash>+<code>
 . .
 ├── admin ├── admin
Line 43: Line 41:
     └── welcome.txt     └── welcome.txt
 </code> </code>
-To hide ''admin_links'', ''sidebar'', and everything beneath '':admin'', '':labels'', '':playground'', '':templates'', and, '':wiki'', use:- <code php>$conf['hidepages'] = '^:(admin*|sidebar|playground|labels|templates|wiki)';</code> +To hide ''admin_links'', ''sidebar'', and everything beneath '':admin'', '':labels'', '':playground'', '':templates'', and, '':wiki'', use:
-{{ https://scottferguson.com.au/uploads/files/config-hidepages.png?nolink |Sitemap}} +
-===== See also =====+
  
-  * [[:config:|Configuring DokuWiki]]+<code php>$conf['hidepages'] = '^:(admin*|sidebar|playground|labels|templates|wiki)';</code>
  
-===== Discussion =====+{{ https://scottferguson.com.au/uploads/files/config-hidepages.png?nolink&recache |Sitemap}}
  
-Please, could you provide the syntax to use for hiding the sidebar file? I tried a lot of things in the [[config:hidepages]] option but he sidebar always. I tried ''sidebar'', ''sidebar$'', ''^(?::sidebar)$'' but none of them works. Thanks for your help. +===== See also =====
  
-**Use ACL to hide the sidebar file in listings.** Set permission for group ALL to "none"The sidebar will still work. +  [[:config:|Configuring DokuWiki]] 
- +  [[https://www.php.net/manual/en/reference.pcre.pattern.syntax.php|PCRE regex syntax]]
-Same to me.. Nothing works :-( item "sidebar" still in menu.+
  
-> Just ''sidebar'' works. If it doesn't you should submit a proper bug report with additional information. --- [[user>ach|Anika Henke]] //2015-08-17 23:25// 
config/hidepages.1499166307.txt.gz · Last modified: 2017-07-04 13:05 by 82.68.82.126

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