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)
Nested items and Presentation Templates
ttriemst
Hello,
I have a question about using nested items and the presentation template. The following is a section of code from my datacapture.cfg:
<item name="Departments">
<replicant min="1" max="10" hide-name="t">
<item name="Department Name">
<text maxlength="50" size="50" />
</item>
<item name="Department Description">
<textarea cols="50" external-editor="visualformat" external-editor-config="what_we_do.xml"/>
</item>
</replicant>
</item>
The template works fine, but when I try to insert a specific nested item (say "Department Name") into my presentation template, I can't get it to work. Does anyone know if there is a way to use specific items (nested items) in a presentation template?
Find more posts tagged with
Comments
MattP
Remove the spaces from the item names and give it a shot. It should be referenced as..
dcr.departments.department_name (case sensitive, remove the spaces).
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
akshathp
Also please post the code from your tpl to verify the call.
Akshat Pramod Sharma
Adam Stoller
Unfortunately (IMO), all too often people are coding their DCTs with descriptive names (including spaces) for the items, rather than using simple names and descriptive labels - so it's quite possible that the space shown in the code is correct as per the DCT - though it looks really bad in terms of the code.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
jbonifaci
Spaces in item names are fine, unless the code accessing them is written poorly.