mxCalendar
mxCalendar copied to clipboard
Paging not working in image grid
The paging in the image grid was not working, because the default MODX per page setting was used. For me this was '500'. In the query the limit is set to 3 (in core/components/mxcalendars/process/mgr/images/getlist.php). When having 4 or more images, I could only see 3 of them, but I could not use paging (it was disabled). Only after manually setting 'per page' to 3 in the image grid, the paging started to work.
I fixed this by overriding the default MODX setting by adding one line to assets/components/mxcalendars/js/mgr/widgets/mxcalendars.images.grid.js on line 9, after paging:true, add:
,pageSize: 3
This sets the default page size to 3 and paging starts working again.