[ic] item-alternate - how does it work ????

Joachim Leidinger interchange-users@interchange.redhat.com
Wed Apr 3 03:46:01 2002


Alma Nuker wrote:
> 
> HI guys;
> 
> I am not sure what I am doing here wrong but I tried  creating simple
> table with rows of defferent colors as follow:
> 
> <table>
> <TR bgcolor="[item-alternate
> 2]#FFFFFF[else]#000000[/else][/item-alternate]">
> <td>&nbsp;</td>
> <td>&nbsp;</td>
> </tr>
> </table>
> 
> Nothing hard :)))).
> 
> I am not sure what I am ding wrong here but I am getting blue color not
> white and black as that should be????
> 
> Do you guys see anything strange here or it is just me???
> 
> I tried also following:
> 
> <TR [item-alternate
> 2]BGCOLOR="#C0C0C0"[else]BGCOLOR="#Ffffff"[/else][/item-alternate]>
> 
> it is not working either????

Are you use it inside a loop or item-list tag?
 
> I am just wondering why ?????
> 
> Any ideas???
> 
> Thanks!
> 
> Alma

This

[tmp color][/tmp]
[loop search="
...
"]
[loop-alternate 2][tmp color] bgcolor="#eeeeee"[/tmp][else][tmp
backcolor][/tmp][/else][/loop-alternate]
<tr>
<td[scratch color]><a href="[loop-code]">[loop-code]</a></TD>
</tr>
[/loop]

works for me! [item-alternate 2] works inside a [item-list] tag.

Joachim

-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de] 
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de