Using Plone's built-in batching mechanism

In this tutorial, Helge Tesdal from Jarn (formerly Plone Solutions) shows you how to use the built-in batching utility in Plone to create a Previous/Next selector with pages when you have a lot of items you want to list.

  1. PloneBatch usage PloneBatch is an extension of the regular Batch class in ZTUtils. It also comes with a handy macro for making the navigation menu to ease development. It's perfect for those 2000 items search result pages.
  2. PloneBatch: Advanced Usage The batch navigation is customizable, and here is an overview of the more advanced features available.

All content on one page (useful for printing, presentation mode etc.)

 

Thanks for this tutorial

Posted by stephenhow at Apr 23, 2005 05:13 PM
Wow, these macros make batching simple. However, if I didn't find this tutorial, I'd be lost. I followed the steps, and finally got it to work. In my case, I didn't use your first steps for creating the batch. Instead, I used
<div tal:define="batch python:here.batchedFolderContents()"> since I'm trying to batch over items in my folder. However, the batch size in the batchedFolderContents() is 100 (and I didn't have 100 items), so I temporarily changed the batch size down to 4, just to see it work.

Defining the b_start_str parameter

Posted by Lukas Zdych at Apr 24, 2005 05:15 PM
When you want to define different b_start_str parametr, you have to put the value between apostrophs b_start_str='b_start_custom'.