So if i understood correctly, i have to put the PHx call like this:
[!Ditto? &id=`klanten` &parents=`53` &orderBy=`pagetitle ASC` &display=`all` &tpl=`[+phx:if=`[+ditto_iteration+]`:is=`4`:or:is=`8`:or:is=`12`:or:is=`16`:or:is=`20`:then=`klant-item-last`:else=`klant-item`+]`!]
Because it doesn’t show a difference.. it’s awkward that the call does seems to do something, because it does take the tpl "klant-item", it only doesn’t use the tpl "klant-item-last" on the 4th, 8th, 12th, ect.
Maybe i miss understood, and you meant i have to place the ditto_iteration inside the "klant-item" chunk?
But i can’t figure out how, because i use to different chunks to achieve the desired effect. I use the following chunks:
chunk "klant-item":
<div class="span-4 quiet colborder"><li class="solidline"><a href="[~[+id+]~]" class="nav">[+menutitle+]</a></li></div>
chunk "klant-item-last":
<div class="span-4 quiet last"><li class="solidline"><a href="[~[+id+]~]" class="nav">[+menutitle+]</a></li></div>
I also tried to combine the 2 chunks with the following ditto and PHx call:
ditto call:
[!Ditto? &id=`klanten` &parents=`53` &orderBy=`pagetitle ASC` &display=`all` &tpl=`klant-item`!]
chunk "klant-item":
<div class="span-4 quiet [+phx:if=`[+ditto_iteration+]`:is=`4`:or:is=`8`:or:is=`12`:or:is=`16`:or:is=`20`:then=`last`:else=`colborder`+]"><li class="solidline"><a href="[~[+id+]~]" class="nav">[+menutitle+]</a></li></div>
I’m stuck.. what am i doing wrong?