Reputation: 398
i have like a 2 foreach loops, first one with a image. So thats only the first item. But in me second foreach i wanted to start showing the result at array 1. Not 0 then i have like 2 times the second post.
First foreach
{foreach $cm->find('title,url,auteur,datum,reacties,topics,afbeelding,tekst', 'Blog') as $item}
{if $item@first}
{/if}
{/foreach}
Second for each
{foreach $cm->find('title,url,auteur,datum,reacties,topics,tekst', 'Blog') as $item}
{/foeach}
What do i need to add in me second foreach to start showing my results started by array 1.
Sorry if this a noob question, im not really good at smarty.
Upvotes: 3
Views: 2128
Reputation: 3245
You can skip the first item in the second foreach with {continue}:
{foreach $cm->find('title,url,auteur,datum,reacties,topics,afbeelding,tekst', 'Blog') as $item}
{if $item@first}
{continue}
{/if}
... code for the other items here ...
{/foreach}
Upvotes: 6