Quote:
Originally Posted by Lynne
Hmmm, haven't really tried anything like that in vB4, but did you try either preregistering the variable or creating one in an array that is already registered? ($post['altclass'] ?)
|
Thanks Lynne
I don't really know how to do that. Do I just replace $altclass with $post['altclass'] ?
Code:
<vb:if condition="!isset($altrow)">
<vb:if condition="$altrow = 0"></vb:if>
</vb:if>
<vb:if condition="++$altrow % 2 == 0">
<vb:if condition="$post['altclass'] = 'alt2'"></vb:if>
<vb:else />
<vb:if condition="$post['altclass'] = 'alt1'"></vb:if>
</vb:if>
then put class=" {vb:raw $post['altclass'] } "