how to cycle row colors for every UDT instance
Posted: Wed Nov 03, 2010 6:40 am
I have multiple statements communicating with the same UDT in one of my content pages like this...
the {myudt} in the UDT looks something like...
print '$name$color$item';
With this setup, is there a way to cycle background colors on the that is being loaded from the UDT? (like the smarty cycle feature which changes colors on the content page? I just want to style {myudt...} every time, and for each time i do that, see a different background color, thats all.
Thanks for any tips!
Code: Select all
{myudt name="larry" color="red" item="shoe"}
{myudt name="joe" color="blue" item="tshirt"}
{myudt name="mike" color="green" item="hat"}
{myudt name="fred" color="orange" item="pants"}
print '$name$color$item';
With this setup, is there a way to cycle background colors on the that is being loaded from the UDT? (like the smarty cycle feature which changes colors on the content page? I just want to style {myudt...} every time, and for each time i do that, see a different background color, thats all.
Thanks for any tips!