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)
Capture name of DCR in TPL
rajivgupta
I want to use the name of the DCR in one of the field in TPL .
Is there anyway to capture the name of DCR in TPL.
Find more posts tagged with
Comments
rajathi
Try using iwpt_get_dcr_name.
Adam Stoller
Try using iwpt_get_dcr_name.
To complete the suggestion - .... within an <iw_perl>...</iw_perl> block.
This is, of course, assuming that your using the Perl based PTs and not XSLT for doing your presentation templates. Not quite sure how you do this in XSLT [yet]
rajivgupta
I am using perl based templates . But still i am not able to figure out how to use this .
Is this correct ?
iwpt_output(" <name =" . iwpt_get_dcr_name . ">\n");
Can you provide me the exact line i need to use .
Reghunath
my $dcr_name = iwpt_get_dcr_name();
iwpt_output("$dcr_name");
gzevin
my $dcr_name = iwpt_get_dcr_name();
iwpt_output("$dcr_name");
again, the answer is not complete.
one might need to massage the name using, say, File::Basename;