Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
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
Gilki
I would like to add on a request to the templating reg-ex issue. I have the reg-ex working, but I would like to specify a default directory for template generation. The users who are using templating are non-technical. Any step to help eliminate error is appreciated. Is there a way to change the '/' to a specific folder when you generate a page?