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)
brach name and workarea within the Presentation te
pratap
Hi
I want to read brach name and workarea within the Presentation template (TPL). can anyone suggest me how to do this.
regards
pratap
Find more posts tagged with
Comments
Adam Stoller
Try reading the documentation on the iw_perl tag -
http://your-teamsite-server-name-here/iw/help/tst/pt/TeamSite__PT__iw_perl.html
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
KTReddy
Pratap,
Try following this:
<iw_perl><![CDATA[
## Here you will get the full path of the DCR, so, you can strip off the stuff after workarea and JUST before WORKAREA is branch.
$dcr_name = iwpt_get_dcr_name();
$dcr_name =~ s/\/iwvn\/.iwmnt//g;
my $workarea = "";
###You can get workarea path by using the following regex.
if ( $dcr_name =~ m#(.*[\\/]WORKAREA[\\/][^\\/]+)[\\/]# ) {
$workarea = $1;
}
]]></iw_perl>
pratap
Thank you, I am able to finish my task with your solution