I'm doing a

<div tal:repeat="item items">

Previous id: ???
Current id: ${item/id}
Next id: ???


Is there any way to add a callback function that will be called on
each repeat, so I could easily put the next and previous id ?

I could loop through the array in PHP, before assigning to PHPTal
object, and set them. But that would mean looping through the array
twice (once before, once for output)...

PHPTAL mailing list

Reply via email to