I have a question to represent directoryobjects per page.
Considering, I have a large number of categories e.g n=40, and therefore, each category is represented as a directoryobject.
I would like to know is there a way to limit the view of 'number of directoryobjects (categories) per page' (e.g 10 directoryobject per page) and on clicking/selecting More option, loading the next '10' directoryobjects (categories), so on..
I use a while loop with a counter for that. Then put your "NextPageObject" outside of the loop. Just make sure you check for more directory objects before you produce your "NextPageObject", so you do not have a blank next page or a never ending loop of next pages.