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 [2015-08-17 23:27] – [Discussion] please submit a bug report achconfig:hidepages [2024-01-25 22:16] (current) Aleksandr
Line 13: Line 13:
 </code> </code>
  
-===== See also =====+Another example. In this case the contents of ''/data/pages'' is 
 +<code> 
 +
 +├── admin 
 +│   ├── build_notes.txt 
 +│   ├── new_software.txt 
 +│   └── todos.txt 
 +├── admin_links.txt 
 +├── labels 
 +│   └── start.txt 
 +├── playground 
 +│   └── playground.txt 
 +├── sidebar.txt 
 +├── software 
 +│   ├── dokuwiki 
 +│   │   └── start.txt 
 +│   ├── kdialog 
 +│   │   └── start.txt 
 +│   ├── start.txt 
 +│   └── __template.txt 
 +├── start.txt 
 +├── templates 
 +│   └── start.txt 
 +└── wiki 
 +    ├── dokuwiki.txt 
 +    ├── syntax.txt 
 +    └── welcome.txt 
 +</code> 
 +To hide ''admin_links'', ''sidebar'', and everything beneath '':admin'', '':labels'', '':playground'', '':templates'', and, '':wiki'', use:
  
-  * [[: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.1439846823.txt.gz · Last modified: 2015-08-17 23:27 by ach

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