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)
Calling out value from a container
System
If I have a datacapture like this:
<!DOCTYPE data-capture-requirements SYSTEM "/interwoven/iw-home/local/config/datacapture5.0.dtd">
<data-capture-requirements type="content" name="two_column_description">
<ruleset name="description::two_column_description">
<description>This section will display the description of your content</description>
<container name="title" combination="and">
<label>Title Text</label>
<item name="col1Header">
<label>Left Side Title Text</label>
<description>Enter Main Title Header Column 1 Header Name</description>
<text required="f" size="50" maxlength="30"></text>
</item>
<item name="col2Header">
<label>Right Side Title Text</label>
<description>Enter Main Title Header Column 2 Header Name</description>
<text required="f" size="50" maxlength="30"></text>
</item>
</container>
</ruleset>
</data-capture-requirements>
How would I source the value of col1Header in the .tpl? I have tried:
my $titleLeftText=iwpt_dcr_value("title.col1Header");
my $titleLeftText=iwpt_dcr_value("dcr.title.col1Header");
etc. and I can't source it with the container tag around it? I can only source it without the container tag around it by dcr.col1Header
Find more posts tagged with
Comments
Migrateduser
Do you need to add an index? Maybe
my $titleLeftText=iwpt_dcr_value("title[0].col1Header");
Not sure if that should be zero or 1.
Migrateduser
I'll try that but shouldn't containerName.itemName work???
Migrateduser
I don't know if it is a bug or not but if I put a space in the container name it works! If I don't it doesn't work??????
Adam Stoller
I'd suggest checking your code very carefully - if adding a space works, then my guess is that there is a space (or some other character that is being inerpreted as a space) in the other file too.
If you're on Unix you can do something like: cat -vte file | grep title
If you're on Windows ... not sure (I have Cygwin on my laptop so that I get nice utilities like this)
--fish
(Interwoven Senior Technical Consultant)