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)
Help on Regex
koppisetti
Hello Gurus,
I am having hard time trying to referencing an images directory in Interwoven. We found an interesting discussion about it we tried to copy this
_regex=^/iw-mount/default/main/([^/]+)/[^/]+/WORKAREA/[^/]+/css/(.*)$=/iw-mount/default/main/$1/home/WORKAREA/devwa/css/$2
and changed it but I am not good at Regex. Can any one help me to point to the right books /resources of regex for interwoven.
Thanks in Adv.
Srinivas'
Find more posts tagged with
Comments
MattP
What are you trying to achieve?
Most of the perl books at least have a good reference to regex syntax. Of course Programming in Perl and Mastering Regular Expressions. The IWOV perl class is good too.
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
koppisetti
Thanks for your response Matt.
Ok here is the Scenairo and this is what I want to acheive.
We have a template directory as follows
"/templatedata/WorkArea/Workspace/CTP_Projects/Images"
In the presentation template we are trying to use the images stored in Images directory. We are not in a position to refer to the images directory with in the .tpl file.
We want to refer to the images as /images/image1.jpg or as images/image1.jpg with out a root reference.
How can we do this?
Thanks for your Help in Adv.
Srinivas'
MattP
why then do you have an images directory in the templatedata directory? You will need to have an Images directory with all of the images on the resulting web server. Why can't the images be in the /images/ directory in Teamsite, and have the users just browse there? If this is a MUST, you may be able to handle it with a proxy redirect, but that won't change the code in the page. Otherwise, you need to add something like the following to your presentation template...
<iw_perl>
$prefix = iwpt_dcr_value('your path from the template');
$prefix =~ s#src="(/.*)"#src="/im_global$1"#g;
iwpt_output("$prefix");
</iw_perl>
good luck
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
koppisetti
I will try it and hope it helps us.
Thanks for your Help Mark.
Srinivas'
Anon.gif