Pagination only in some pages
-
Hi, Tobias,
So I have a homepage, where I want to paginate my 700-rows table, and I have a separate, list page, where there should be no pagination.As I understood, I cannot re-instate datatable.js for the 2nd time, so I have to disable in tablepress table options, to not include datatables.js.
The problem is that, I can’t find harcoded, or call echo ‘print_default_tablepress_datatables_js_initializer’ etc. to see default options, so my table is working but not looks nice, where I put this JS in home page and disable JS:
<script> jQuery(document).ready( function () { jQuery('#tablepress-1').dataTable( { "bPaginate": true, "iDisplayLength": 20, "bLengthChange" : false } ); } ); </script>
What would be the default code so that table would look the same style as it is with tablepress generated Datatables JS options.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Pagination only in some pages’ is closed to new replies.