Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I have a product category that has a has_many relationship to products. The products are shown in the categoryÂ´s template:
<%control relationName %>
How can I add a pagination to this template?
I know how to implement a pagination on a control over a DataObjectSet but this is different because the DataObjectSet is created by the framework.
By now I have solved this by writing a controller method that returns a DataObjectSet and passed the required parameter to DataObject::get(). I presume there is a more efficent way to do that.