Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
regex not working
msrich
W2K TS, TST 5.5.2 + SP2B
Here's the server's templating.cfg:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE templating SYSTEM "templating5.0.dtd">
<templating>
.
.
.
<category name="I_Want_to">
<data-type name="I_Want_to_Public" dcr-type="iwov">
<locations>
<branch vpath-regex="^/default/main/vanguard/internet/vanguardcom/freshness/Dis_Marketing/.*" />
</locations>
<presentation>
<template name="I_Want_to_Public.tpl" extension="html" />
</presentation>
</data-type>
.
.
.
When navigated to the Dis_Marketing sub-branch, the category is available, but not the datatype. With regex as follows instead, the datatype is available.
regex="^/default/main/vanguard/internet/vanguardcom/freshness/Dis_Marketing"/>
There's a Dis_Marketing_Prod sister sub-branch where I don't want the datatype to be available; I want to restrict to Dis_Marketing.
What's going on? Can someone help?
Find more posts tagged with
Comments
msrich
By the way, this regex gives the deisred behavior as well:
<branch vpath-regex="^/default/main/vanguard/internet/vanguardcom/freshness/Dis_Marketing$"/>
james1
At the Dis_Marketing branch, the vpath is:
/default/main/vanguard/internet/vanguardcom/freshness/Dis_Marketing
which would not satisfy the regex:
^/default/main/vanguard/internet/vanguardcom/freshness/Dis_Marketing/.*
Your other post suggested the regex:
^/default/main/vanguard/internet/vanguardcom/freshness/Dis_Marketing$
which will be satisfied by the vpath above. However, I'm guessing that you also want Dis_Marketing's sub-branches to pass the regex, but not Dis_Marketing_Prod and its sub-branches. So, try a regex like this:
^/default/main/vanguard/internet/vanguardcom/freshness/Dis_Marketing(/.*)*$
which essentially says that either nothing follows "Dis_Marketing", or a slash ("/") (and more stuff) does.
-- James
--
James H Koh
Interwoven Engineering