Code: Select all
{foreach from=$archives item="archive"}
<div class="archive-year {cycle values="left,center,right"}">
[...]
{/foreach}
Is there something I don't see or why is cycle behaving unexpectedly here?
YL
Code: Select all
{foreach from=$archives item="archive"}
<div class="archive-year {cycle values="left,center,right"}">
[...]
{/foreach}
Erratic, too. Works like it's supposed to in my dev blog (which, however, has only three years).Don Chambers wrote:That does seem strange.
1. No, it doesn't, 2. generates the expected order and 3. doesn't do a thing. So giving the cycle a name fixes the problem, but why ..? Oh, hold on. I know.Don Chambers wrote: Does it always start with the second one if you change the order? How about if you give it a name, ie {cycle name="blah" values="left,center,right"} How about single quotes instead of double since the class name is double quoted?