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-06-06 13:59] – [Discussion] 105.229.249.16config: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 worksThanks for your help+===== See also ===== 
 + 
 +  * [[:config:|Configuring DokuWiki]] 
 +  * [[https://www.php.net/manual/en/reference.pcre.pattern.syntax.php|PCRE regex syntax]]
  
-**Use ACL to hide the sidebar file in listings.** Set permission for group ALL to "none". The sidebar will still work. 
config/hidepages.1433591944.txt.gz · Last modified: 2015-06-06 13:59 by 105.229.249.16

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