Skip to the content
Documentation

working without modulo

No ratings yet

If you miss the delimiter modulo combination provided by the old section structure you can accomplish the same thing with code like this:

{foreach $objects as $objectKey => $object}
 {if eq($objectKey|mod(2),0)}
  {node_view_gui view=line content_node=$object}
 {else}
  {node_view_gui view=line content_node=$object}
 {/if}
{/foreach}