Skip to content

Instantly share code, notes, and snippets.

@sashabeep
Created January 9, 2018 11:08
Show Gist options
  • Save sashabeep/fce51b98a434efa3117c9109a71efd2e to your computer and use it in GitHub Desktop.
Save sashabeep/fce51b98a434efa3117c9109a71efd2e to your computer and use it in GitHub Desktop.
Zero based iteration placeholder for DocLister
<?php
/*USAGE:
DocLister?prepare=`zerobased`
call in @TPL: [+iteration_zerobased+]
*/
$data['iteration_zerobased'] = $data['iteration']-1;
return ($data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment