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!