Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
dir-regex statement
System
I'm trying to use the dir-regex statement of the <directory> element in the templating.cfg to allow files to be generated in two specific directories, but unfortunately I can't get the regex to work properly.
Here's what I tried to do:
<directory dir-regex=".*/(internal|orgcharts)/.*" />
Users should only be able to generate pages using this template under either an "internal" directory, or an "orgcharts" directory.
After applying this change and trying to generate a file, I get an error message saying that the valid directories for this template are ".*/(internal|orgcharts)/.*", which is completely incorrect.
Is there a different syntax that I should be using to specify the "or" statement? I thought Teamsite could handle actual regex's, not just wildcard matching. I have considered using the <or> element, but the documentation says that it's only used under the <allowed> element for grouping ACL's.
TIA,
Ronnie
Find more posts tagged with
Comments
There are no comments yet