3212 Posts in 847 Topics by 809 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1121 Views |
-
Pagination for a control over a has_many relationship

2 December 2009 at 11:18pm Last edited: 2 December 2009 11:31pm
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. -
Re: Pagination for a control over a has_many relationship

3 December 2009 at 1:10am
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.
| 1121 Views | ||
|
Page:
1
|
Go to Top |

