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 get extended attribute in PT?
Huan
We have set the extended attributes when we created DCR. Now, I want to get those extended attributes in my presentation template. I use < iw_value name='dcr.generic-content.paragraph'/> to get values stored in DCR in PT. How could I get extended attributes associated to each DCR in PT?
Find more posts tagged with
Comments
iwovGraduate
One way is to run iwextattr CLT.
You'll have to write a little Perl within the <iw_perl> tag.
Huan
Let me be more specific. The extended attributes are associated with each DCR. When you preview one DCR, it actually generates a .html file (in my case). In order to get the EA, I first need to get the correct DCR file. If I use iwpt_get_ofile_name() to get the file name in PT, I actually get the .html file not the DCR file name.
iwovGraduate
ok, no worries..
There is a similar (to iwpt_get_ofile_name) function to get the name of the DCR. Search the documentation.
So once you have the name of the DCR, you can use iwextattr to get the EAs for the DCR.
Edited by iwovGraduate on 03/29/05 03:04 PM (server time).
Adam Stoller
Did you try using iw_get_dcr_name() instead of iw_get_ofile_name() ?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com