From a9c31e40efaaaa2740a774076fc200c498a6b11c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Wed, 13 Nov 2024 21:58:05 +0100 Subject: [PATCH] Use datatables_page_length_default option --- templates/footer.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/footer.tpl b/templates/footer.tpl index e832334..465a296 100644 --- a/templates/footer.tpl +++ b/templates/footer.tpl @@ -29,9 +29,12 @@ menu: [ {$datatables_page_length_choices nofilter} ] } {/if} -{literal} }, }, +{if $datatables_page_length_default} + pageLength: {$datatables_page_length_default}, +{/if +{literal} language: { url: "vendor/datatables/i18n/{/literal}{$lang|default:'en'}{literal}.json" }