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)
branch vpath-regex
syim
Do you know if we can use <branch vpath-regex="..."/> in templating.cfg to exclude a category for a particular branch in TeamSite?
I have a template category is avaliable to all branches except one. Instead of adding a <branch vpath-regex="..."/> for each allowed branch. Is there a way to specify allow all, but NOT one branch?
Thanks
Find more posts tagged with
Comments
Adam Stoller
I don't believe that the vpath-regex provides for negative regex's - however, depending on the naming of your branches you might be able to use character classes to define what's okay. For instance - if you have
/default/main/a_branch
/default/main/b_branch
...
/default/main/z_branch
and you didn't want
f_branch
to see this template - you could use something like:
<branch vpath-regex="/default/main/[a-eg-z]_branch"/>
The other alternative is to use the
prune-missing-files="t"
directive in the templating.cfg so that the "old" system of verifying the templates exist in the branch takes place and you can leave the vpath-regex set to
".*"
.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
syim
Thanks a lot. Setting prune-missing-files="t" and leaving the vpath-reges to ".*" solved our problem.