RE: [SMARTY] cycle and dynamic vars

From: Date: Fri, 23 Aug 2002 12:42:41 +0000
Subject: RE: [SMARTY] cycle and dynamic vars
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5816@lists.php.net to get a copy of this message
Since the values attribute of {cycle} is just a string, I'm pretty sure you can set it to a template variable (untested): {assign var=this_skin_colors value="#000000,#FFGG00"} then {cycle values=$this_skin_colors} -- Josh -----Original Message----- From: Eskil Kvalnes [mailto:eskil@uten.net] Sent: Friday, August 23, 2002 6:17 AM To: Smarty Mailing List Subject: [SMARTY] cycle and dynamic vars Hey, I'm currently using cycle to make alternating color rows, but I need the vars cycle uses to be dynamic. Atm, I'm having two skins, one blue and one brown. And I need to make the vars dynamic so that the colors fit each skin. Any idea on how I should do this? --------------- Sincerely, Eskil Kvalnes eskil@uten.net -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#5816) next »