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)
How to convert relative URL in "DCR" into absolute
sanjeevappa
I need to check for Broken links in "DCR". For That i need :
How to convert relative URL in "DCR" into absolute URL(If there is virtualization ) so that i can verify that the URL exists or not.
Any help will be appreciated.
Sanjeev.
Find more posts tagged with
Comments
Nicholas
I read some other threads on this, try searching
Thanks Nicholas
Edited by Nicholas on 03/24/05 01:05 AM (server time).
mike_jaixen
Your answer depends on how you map your DCR's to deployed content. We use workflow to automatically generate content based on the branch name, file name, and path underneath the "/data" directory. So in workarea /default/main/site1/subsection/deep/deeper/even_deeper/WORKAREA/main for DCR templatedata/category/content/data/subdirectory/subdirectory/mydcr , our workflow processes deploy the content to site1/htdocs/subsection/deep/deeper/even_deeper/subdirectory/subdirectory/mydcr.htm . I can then use a RegEx in <iw_perl> to extract the /subsection/deep/deeper/ and the /subdirectory/subdirectory/mydcr information from the full DCR name.
We never use relative paths on our site, as it just seems to confuse things. When we use a DCR to allow you to look at items in the branch, we automatically prepend the branch location (we call it the branch_root) to the front of those addresses. A lot easier than trying to figure out how far up or down the tree you need to go to get the link right.
Hope this helps.