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)
Displaying 2 replicant items per row
nasa
Hi,
If i have 6 replicants in my generated page, i would like the display of the replicants to be 2 per row - so the generated page would have 3 rows (<tr> )
with 2 replicants displayed in each row ie., 1st and 2nd replicants in 1st <tr> , 3rd and 4th in 2nd <tr> , so forth.
can somebody guide me as to how to develop the logic in the presentation template for <iw_iterate> for counter parameter so that the display of replicants is customized?
Any immediate help is appreciated.....
Thanks in advance
Find more posts tagged with
Comments
Jens
Hi,
for PT try something like this:
<iw_iterate var="teaser_rep" list="dcr.replicantname" iteration="i">
<iw_if expr=' ($i%2==0) ' >
<iw_then>
<tr>
</iw_then>
</iw_if>
<td><iw_value name="teaser_rep.itemname" /><td>
<iw_if expr=' ($i%2==0) ' >
<iw_then>
</tr>
</iw_then>
</iw_if>
</iw_iterate>
It would be nice to know if it is possible to do the same in DCT.
Ciao,
Jens