$resource[$x]['iteration'] = $x;
$resource[$x]['countt'] = $stop;
<div class="wrapper[+dio_last_in_line:is=`1`:then=` last`+]"> ... </div>
if( $x + 1 === $stop )
{
$resource[$x]['dio_last_in_line'] = '1';
}Now that the [+ditto_iteration+] placeholder is in Ditto, could you explain how to use it ? Where do you define the modulo parameter ?
This has been implemented as the [+ditto_iteration+] placeholder in the development version.
See the following changeset:
http://mirror3.cvsdude.com/trac/ditto/codebase/changeset/1443
You can get the development version here:
http://www.modxcms.com/ditto_download.html