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 [2019-01-09 21:17] – added to discussion (regarding the Configuration Manager plugin) Melissa Glidewellconfig:hidepages [2024-01-25 22:16] (current) Aleksandr
Line 1: Line 1:
- 
 ====== Configuration Setting: hidepages ====== ====== Configuration Setting: hidepages ======
  
Line 15: 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 42: 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// 
- 
-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// 
config/hidepages.1547065058.txt.gz · Last modified: 2019-01-09 21:17 by Melissa Glidewell

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