7911 Posts in 1354 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Hiding pagination controls and setting results per page in DataObjectManager
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1138 Views |
-
Hiding pagination controls and setting results per page in DataObjectManager

20 March 2010 at 2:31pm Last edited: 20 March 2010 2:46pm
Hi,
How do you set results per page to default to 'All'. setPageSize() isn't having an effect with me, and anyway, you'd have to specify a finite number right? [Edit: Just discovered that 'All' actually shows 9999 per page]
If the above is possible I would also like to hide the pagination controls. Again setShowPagination() doesn't seem to work...
-
Re: Hiding pagination controls and setting results per page in DataObjectManager

21 March 2010 at 4:27am Last edited: 21 March 2010 5:05am
Ok, so setting
$my_dom->setUseViewAll(true);
$my_dom->setPerPageMap(array(9999));
$category_manager->setPageSize(9999);will set 'All' as the only option for results per page, and default to it.
It seems setPageSize does work, but the set value will not reflect in the results per page dropdown, and it also seems to override any choice you make in the dropdown.
I'm gonna stick a request in the Feature Requests thread now...
| 1138 Views | ||
|
Page:
1
|
Go to Top |

