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)
different workareas
System
Hi,
How can we code in a tpl so that the workareas in a particular branch are dynamically substitued when giving the code like this, for eg...
URL=
http://gcm-vvvv.it.net/iw-mount/default/main/vvvv/WORKAREA/$wkarea/ja_JP/products.cfm?product=ja_JP/$dcrName'>";
thanks in advance..
Find more posts tagged with
Comments
akshathp
Did you mean you want to capture the value for $wkarea in your TPL?
If yes, then you could use following:
<iw_perl><![CDATA[
my($pt, $dcr, $ofile, $wkarea);
for(my $i = 0; $i <
@ARGV
; $i += 2){
$pt = $ARGV[$i+1], next if ($ARGV[$i] =~ /^-pt$/);
$dcr = $ARGV[$i+1], next if ($ARGV[$i] =~ /^-iw_pt-dcr$/);
$ofile = $ARGV[$i+1], next if ($ARGV[$i] =~ /^-ofile$/);
$wkarea = $ARGV[$i+1], next if ($ARGV[$i] =~ /^-iw_include-location$/);
}
]]></iw_perl>
Hope this helps!
Akshat Pramod Sharma
Interwoven Inc.