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 revision Previous revision
Next revision
Previous revision
config:hidepages [2015-08-17 23:27]
ach [Discussion] please submit a bug report
config:hidepages [2019-02-13 10:26] (current)
Aleksandr
Line 1: Line 1:
 +
 ====== Configuration Setting: hidepages ====== ====== Configuration Setting: hidepages ======
  
Line 13: Line 14:
 </​code>​ </​code>​
  
 +Another example. In this case the contents of ''/​data/​pages''​ is
 +<code bash>
 +.
 +├── 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:- <code php>​$conf['​hidepages'​] = '​^:​(admin*|sidebar|playground|labels|templates|wiki)';</​code>​
 +{{ https://​scottferguson.com.au/​uploads/​files/​config-hidepages.png?​nolink |Sitemap}}
 ===== See also ===== ===== See also =====
  
Line 26: Line 57:
  
 > 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// > 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//
 +
 +I love this config. Just suits my need to unpublish a public page but still make it available to a certain group of people. I love DokuWiki. It's so delicate and feature-rich. You guys are all blessed genius. ​ --- [[user>​MilchFlasche|MilchFlasche]] //​2017-10-21 08:22//
 +
 +For those who (are less regex savvy and) wish to utilize this feature from their wiki's Configuration Manager plugin, go to the hidepages listing in the Display section. Using the first example from above, you would enter
 +<code php>
 +reports:​template|sidebar
 +</​code>​
 +Remember to click the **Save** button. (Apologies if this is an improper use of the discussion since it pertains to a specific plugin.) --- [[user>​Melissa Glidewell|Melissa Glidewell]] //2019-1-9 12:15//
 +
 +Beautiful, Thanks -[[user>​poorboy|John Pollard]] //2019-2-13 13:51//
config/hidepages.1439846823.txt.gz · Last modified: 2015-08-17 23:27 by ach