|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
blue Smarty Rookie
Joined: 07 Aug 2003 Posts: 7
|
Posted: Wed Sep 17, 2003 9:06 am Post subject: {cycle} problem |
|
|
Hi, i have a problem with the cycle tag.
{cycle values="#ffce00,#FFFFFF" advance="$check[inhalt1]"}
the string $check is an array whick contains the following
Array (6)
0 => false
1 => false
2 => false
3 => false
4 => true
5 => true
I want to accomplish that when the array value is false the cycle doesnt continues, but it wont work...seams like i have to print the $check[inhalt1]"} .... can someone help me? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Sep 17, 2003 10:23 am Post subject: |
|
|
i think {cycle values="#ffce00,#FFFFFF" advance="$check[inhalt1]"}
will pass a string containing the word "false" to the advance-attribute. this string is consider boolean true.
i'd try: {cycle values="#ffce00,#FFFFFF" advance=$check[inhalt1]}
(note no quotes). this should pass a boolean false to cycle/advance.
greetings
messju |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|