Trevor Toenjes writes: > Is there a built-in to determine how many batches(pages) are returned from a > query? There are "dtml-in" defined variables "next-batches" and "previous-batches" (or similar) that contain the sequence of next or previous batches, respectively. You can ask them for their length... As often: see <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Dieter