Default page size on datatables

I’ve been asked to change the default page size for the pagination in Preside’s datatables that have been rendered by dataHelpers.relatedRecordsDatatable. Is there any way of setting this? It probably doesn’t matter if it’s set site-wide.

There are two settings you can override:

settings.dataManager.defaults.datatable.paginationOptions = [ 5, 10, 25, 50, 100 ];
settings.dataManager.defaults.datatable.defaultPageLength = 10;

You can just override these settings in your config.cfc.