...
protected $per_page = "50";
...
protected $per_page_map = array('50', '100');
Would I need to use a DataObject Decorator Class to update these values outside the module?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
...
protected $per_page = "50";
...
protected $per_page_map = array('50', '100');
Would I need to use a DataObject Decorator Class to update these values outside the module?
No, you can update those at the instance level.
$myDOM->setPerPageMap();
$myDOM->setPageSize();
That's create, many thanks