I am trying to get a nested replicant to show up correctly in my TPL with little luck...i dont know if its even possible. either 1) my table appears 3 times in a row or 2) i get all kinds of empty tables appearing all over the preview page
ive tried to use iteration with no luck...ill attach a screenshot of the redundant tables. any help would be appreciated
snippet from datacapture.cfg:
<!-- COMPONENTS (CONTAINER) -->
<item name="component">
<label>Content Component</label>
<replicant max="100" combination="or">
<!-- SIDEBAR (REPLICANT) -->
<item name="sidebar">
<label>Sidebar</label>
<replicant max="100" combination="or">
<item name="sb_subtitle">
<label>Subtitle</label>
<description>Enter your Sidebar Subtitle.</description>
<database deploy-column="f" />
<text size="70" required="f" />
</item>
<item name="sb_section_head">
<label>Section Head</label>
<description>Enter your Sidebar Section Head.</description>
<database deploy-column="f" />
<text size="70" required="f" />
</item>
<item name="sb_body_copy">
<label>Body Copy</label>
<description>Enter the body of your Sidebar.</description>
<database deploy-column="f" />
<textarea required="t" rows="15" cols="60" wrap="virtual" external-editor="visualformat" external-editor-config="/iw/config/genericvisualformatconfig.xml" external-editor-inline="t" />
</item>
------------------------------------------------
snippet from .tpl
<iw_iterate list='dcr.component' var='copy'>
<iw_iterate list='copy.sidebar' var='sb' iteration='iter'>
<iw_if expn=" {iw_value name='iter'/} %1 ">
<iw_ifcase name='sb' >
<table border="0" cellpadding="0" cellspacing="0" align="right" width="145">
<tr>
<td width="15"><img src="/daf/images/common/spacer.gif" height="5" width="15" border="0"/></td>
<td><table cellpadding="7" cellspacing="0" width="100%" class="callout">
<tr>
<td class="calloutbody">
<iw_iterate list='copy.sidebar' var='sb'>
<div class="subtitle"><iw_value name='sb.sb_subtitle'/></div>
<div class="sectionhead"><iw_value name='sb.sb_section_head'/></div>
<div class="subhead"><iw_value name='sb.sb_section_subhead'/></div>
<div class="bodycopy"><iw_value name='sb.sb_body_copy'/></div>
</iw_iterate>
</td>
</tr>
</table>
</td>
</tr>
</table>
</iw_ifcase>
</iw_if>
</iw_iterate>
</iw_iterate>
-------------------
World of Warcraft — Illidan/Horde