DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:aclplusregex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
plugin:aclplusregex [2021-01-19 23:50] – version upped andiplugin:aclplusregex [2021-01-21 12:13] – [Examples] annda
Line 83: Line 83:
 </code> </code>
  
 +You can also use regular expressions in the id part of the configuration line like this:
 +<code>
 +docs:customer:$1:(\d{3})   @customer_(\d{5})_sub   4
 +</code>
 +
 +Note that you **have to** define your pattern as a group and put it in parentheses, otherwise it won't be recognized as regex.
 +
 +The above would allow user in a group like ''@customer_54321_sub'' to create pages in namespaces such as
 +  * ''docs:customer:54321:001''
 +  * ''docs:customer:54321:002''
 +  * ''docs:customer:54321:003''
  
 ===== Changleog ===== ===== Changleog =====
plugin/aclplusregex.txt · Last modified: 2024-01-07 14:43 by Aleksandr

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