DataTables.net can be fitted into CouchCMS backend. If you never tried datatables - don't miss on its awesome features - see link https://datatables.net
Adding to this post viewtopic.php?f=2&t=11126&p=29031#p29031, here are some tips.
Most customization can be done via config_list_view (feature of CouchCMS 2.0+ viewtopic.php?f=5&t=10241 ). -
Override default '1000'-pages limit of pages tag and set it to be big enough (or exact) to fit in all your cloned pages -
In essence we want all cloned pages to be present in html before activating datatable (unlike in server-side processing). DTs are known to work very fast on thousands of pages, sourced by html, javascript or ajax json file and anything above 1k would require server-side processing to keep up.
Automatic setting of limit goes like this:
3 buttons: Copy, CSV, PDF are meant to save listing to clipboard or a file (csv/pdf). Selector Show: "All" helps tailor number of visible pages in the list. Filter is a filter and pagination is activated automatically. Nothing is changed anywhere - neither in data nor in actions buttons. Plugin is configured to recognize CouchCMS default format of date: "Aug 25th 2018" - sorting by date will be natural thanks to renown Moment.js library.
Credits for beautiful datatable styling and fitting goes to Eugene Kopyov @ Limitless Kit Html Template and fitting DT into CouchCMS backend is done by me. If you have any questions or suggestions, feel free to PM me.
Adding to this post viewtopic.php?f=2&t=11126&p=29031#p29031, here are some tips.
Most customization can be done via config_list_view (feature of CouchCMS 2.0+ viewtopic.php?f=5&t=10241 ). -
Override default '1000'-pages limit of pages tag and set it to be big enough (or exact) to fit in all your cloned pages -
<cms:config_list_view limit="10000" >
In essence we want all cloned pages to be present in html before activating datatable (unlike in server-side processing). DTs are known to work very fast on thousands of pages, sourced by html, javascript or ajax json file and anything above 1k would require server-side processing to keep up.
Automatic setting of limit goes like this:
- Code: Select all
<cms:set total_pages = "<cms:pages count_only='1' show_unpublished='1' show_future_entries='1' />" /> <cms:config_list_view limit=total_pages>
3 buttons: Copy, CSV, PDF are meant to save listing to clipboard or a file (csv/pdf). Selector Show: "All" helps tailor number of visible pages in the list. Filter is a filter and pagination is activated automatically. Nothing is changed anywhere - neither in data nor in actions buttons. Plugin is configured to recognize CouchCMS default format of date: "Aug 25th 2018" - sorting by date will be natural thanks to renown Moment.js library.
Credits for beautiful datatable styling and fitting goes to Eugene Kopyov @ Limitless Kit Html Template and fitting DT into CouchCMS backend is done by me. If you have any questions or suggestions, feel free to PM me.