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 [2009-05-03 13:49] – add sitemap to automatic listing list ChrisSconfig:hidepages [2024-01-25 22:16] (current) Aleksandr
Line 1: Line 1:
 ====== Configuration Setting: hidepages ====== ====== Configuration Setting: hidepages ======
  
-This option accepts a Regular Expression to filter certain pages from all automatic listings (RSS, recent changes, search results, index, sitemap). This is useful to exclude certain pages like the ones used in the sidebar templates. The regexp is matched against the full page ID with a leading colon. If it matches, the page is assumed to be a hidden one. This is a rather cosmetic option, not a security one.+This option accepts a Regular Expression to filter certain pages from all automatic listings (RSS, recent changes, search results, index, sitemap). This is useful to exclude certain pages like the ones used in the sidebar templates. The regexp is matched against the full pagename with a leading colon. If it matches, the page is assumed to be a hidden one. This is a rather cosmetic option, not a security one.
  
   * Type: String   * Type: String
   * Default:    * Default: 
  
 +===== Example =====
 +
 +Here's complex example excludes '':reports:template'', '':reports:sidebar'' and their subpages:
 +<code php>
 +$conf['hidepages'] = '^:reports:(?:template|sidebar)';
 +</code>
 +
 +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:
 +
 +<code php>$conf['hidepages'] = '^:(admin*|sidebar|playground|labels|templates|wiki)';</code>
 +
 +{{ https://scottferguson.com.au/uploads/files/config-hidepages.png?nolink&recache |Sitemap}}
  
 ===== See also ===== ===== See also =====
  
   * [[:config:|Configuring DokuWiki]]   * [[:config:|Configuring DokuWiki]]
 +  * [[https://www.php.net/manual/en/reference.pcre.pattern.syntax.php|PCRE regex syntax]]
  
config/hidepages.1241351377.txt.gz · Last modified: 2010-12-01 22:35 (external edit)

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