Hi,
I am trying to put the items in 2 columns based on odd even count..but its taking the first item and displaying in 2 columns(its repeating the same item in both).
and also I want to get empty cell if there is only one item (i.e right column cell should be empty)
here is the code I am using....can anyone help me/
<!-- Top 2 research -->
<table cellspacing=0 cellpadding=0 width="762" border="0">
<tr bgcolor="#ffffff">
<iw_iterate list='dcr.researchlist.topresearch' var='researchitem'>
<iw_if expr='({iw_value name="$iw_iteration"/} % 2 == 0)'>
<iw_then>
<td width="20"><img src="/images/trans_pixel.gif" width="20" /></td>
<td width="351">
<table cellspacing=0 cellpadding=0 width="351" border="0">
<tr>
<td width="110"><img src="{iw_value name='researchitem.pic'}" width="110" height="68"/></td>
<td width="2"><img src="/images/trans_pixel.gif" width="2"/></td>
<td>
<table cellspacing=0 cellpadding=0 width="239" border="0">
<tr>
<td><a href="javascript:void(null)" onclick="openResult('{iw_value name="researchitem.url"}');return false;" class="smallBlueLink" target="_new"><iw_value name='researchitem.title'></a>
</td>
</tr>
<tr>
<td class="researchList">
<iw_value name='researchitem.date'>
</td>
</tr>
<tr>
<td class="notice">
<iw_value name='researchitem.para'>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</iw_then>
<iw_else>
<td width="20"><img src="/images/trans_pixel.gif" width="20" /></td>
<td width="351">
<table cellspacing=0 cellpadding=0 width="351" border="0">
<tr>
<td width="110"><img src="{iw_value name='researchitem.pic'}" width="110" height="68"/></td>
<td width="2"><img src="/images/trans_pixel.gif" width="2"/></td>
<td>
<table cellspacing=0 cellpadding=0 width="239" border="0">
<tr>
<td><a href="javascript:void(null)" onclick="openResult('{iw_value name="researchitem.url"}');return false;" class="smallBlueLink" target="_new"><iw_value name='researchitem.title'></a>
</td>
</tr>
<tr>
<td class="researchList">
<iw_value name='researchitem.date'>
</td>
</tr>
<tr>
<td class="notice">
<iw_value name='researchitem.para'>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="20"><img src="/images/trans_pixel.gif" width="20" /></td>
</iw_else>
</iw_if>
</iw_iterate>
</tr>
</table>
<!-- End Top 2 Research -->
Edited by getnaren on 10/26/05 06:50 PM (server time).