From b7c4d5014d8ae752101dfde1de23710ea7a6aedc Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 29 Feb 2024 15:40:21 +0100 Subject: [PATCH] Update outdated pagination in the tutorial --- .../part-1/acptemplates/personList.tpl | 20 ++++++++++++----- .../part-1/templates/personList.tpl | 22 ++++++++++++------- .../part-3/acptemplates/personList.tpl | 20 ++++++++++++----- .../part-3/templates/personList.tpl | 22 ++++++++++++------- .../part-4/acptemplates/personList.tpl | 20 ++++++++++++----- .../part-4/templates/personList.tpl | 22 ++++++++++++------- .../part-5/acptemplates/personList.tpl | 20 ++++++++++++----- .../part-5/templates/personList.tpl | 22 ++++++++++++------- .../part-6/acptemplates/personList.tpl | 20 ++++++++++++----- .../part-6/templates/personList.tpl | 22 ++++++++++++------- 10 files changed, 140 insertions(+), 70 deletions(-) diff --git a/snippets/tutorial/tutorial-series/part-1/acptemplates/personList.tpl b/snippets/tutorial/tutorial-series/part-1/acptemplates/personList.tpl index caa87a9a..7bc9e853 100644 --- a/snippets/tutorial/tutorial-series/part-1/acptemplates/personList.tpl +++ b/snippets/tutorial/tutorial-series/part-1/acptemplates/personList.tpl @@ -14,11 +14,15 @@ -{hascontent} +{if $pages > 1}
- {content}{pages print=true assign=pagesLinks controller="PersonList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content} +
-{/hascontent} +{/if} {if $objects|count}
@@ -54,11 +58,15 @@