In my template I use a duplicate block to achieve alternative row colors.
<li class="altColor1 color">[something.type]">[something.type; block=li]</li>
<li class="altColor2 color">[something.type]">[something.type; block=li]</li> |
The data that is merged in are rows that can be of two types; 'normal' or 'special'. I need the alternative colors to go on as usual for the type normal. But if the type is special I need the program to not switch the block code.
What happens now is that is the type is special I style it to be purple where the normal type alternates between grey and white. In this way I can get the following color sequence: grey, white, grey, white, purple, white, grey. But this doesn't look good. I would like it to be: grey, white, grey, white, purple, grey, white.
Is this possibe using the normal tbs code or should I solve this on the php side?