zpt repeat first and last items

I was trying to find a way to style the first and last items of repeat in a zope page template.

in a typical repeat, you can put a condition e.g. repeat/list/end or a python test e.g. python:test(repeat[’list’].end,’last’,'normal’) to style the last item differently - same applies for the first item (start).

Leave a Reply