Re: [SMARTY] example usage of cycle
| From: | Monte Ohrt | Date: | Fri, 03 May 2002 18:11:42 +0000 |
| Subject: | Re: [SMARTY] example usage of cycle | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4044@lists.php.net to get a copy of this message | ||
Certainly, as with all plugins. The attribute syntax works the same with any of them. You do not need the quotes around your examples, FYI. I don't know if the first one would even work with quotes.
{cycle values=#background_colors#}
{cycle values=$background_colors}
Monte
G wrote:
Can you use config and php vars with cycle? {cycle values="#background_colors#"} {cycle values="$background_colors"} Just checking :) Gerard-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.-----Original Message----- From: Monte Ohrt [mailto:monte@ispi.net] Sent: Friday, May 03, 2002 10:10 AM To: Monte Ohrt Cc: Smarty Subject: Re: [SMARTY] example usage of cycle Monte Ohrt wrote:Now a trickier one, cycling through four colors on columns, two on the even rows and two on the odd rows. {* setup the cycles *} {cycle id=0 values="#eeeeee,#dddddd" reset=true print=false} {cycle id=1 values="#eeeeee,#dddddd" reset=true print=false}oops, the above line should read: {cycle id=1 values="#bbbbbb,#aaaaaa" reset=true print=false} -- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php