Update outdated pagination in the tutorial
authorMarcel Werk <burntime@woltlab.com>
Thu, 29 Feb 2024 14:40:21 +0000 (15:40 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 29 Feb 2024 14:40:21 +0000 (15:40 +0100)
snippets/tutorial/tutorial-series/part-1/acptemplates/personList.tpl
snippets/tutorial/tutorial-series/part-1/templates/personList.tpl
snippets/tutorial/tutorial-series/part-3/acptemplates/personList.tpl
snippets/tutorial/tutorial-series/part-3/templates/personList.tpl
snippets/tutorial/tutorial-series/part-4/acptemplates/personList.tpl
snippets/tutorial/tutorial-series/part-4/templates/personList.tpl
snippets/tutorial/tutorial-series/part-5/acptemplates/personList.tpl
snippets/tutorial/tutorial-series/part-5/templates/personList.tpl
snippets/tutorial/tutorial-series/part-6/acptemplates/personList.tpl
snippets/tutorial/tutorial-series/part-6/templates/personList.tpl

index caa87a9af2776837d1fa8b6f834552d41055167c..7bc9e8539628d6101ceedfeb4b633e93db13185d 100644 (file)
        </nav>
 </header>
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}{pages print=true assign=pagesLinks controller="PersonList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $objects|count}
        <div class="section tabularBox">
        </div>
        
        <footer class="contentFooter">
-               {hascontent}
+               {if $pages > 1}
                        <div class="paginationBottom">
-                               {content}{@$pagesLinks}{/content}
+                               <woltlab-core-pagination
+                                       page="{$pageNo}"
+                                       count="{$pages}"
+                                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                               ></woltlab-core-pagination>
                        </div>
-               {/hascontent}
+               {/if}
                
                <nav class="contentFooterNavigation">
                        <ul>
index b2eab30687f1617f01341f6f0ff3ee24e9739066..3d9e6f542cf1a683dd6477e631d3fd07cf904fc2 100644 (file)
 
 {include file='header'}
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}
-                       {pages print=true assign=pagesLinks controller='PersonList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}
-               {/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $items}
        <div class="section sectionContainerList">
 {/if}
 
 <footer class="contentFooter">
-       {hascontent}
+       {if $pages > 1}
                <div class="paginationBottom">
-                       {content}{@$pagesLinks}{/content}
+                       <woltlab-core-pagination
+                               page="{$pageNo}"
+                               count="{$pages}"
+                               url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                       ></woltlab-core-pagination>
                </div>
-       {/hascontent}
+       {/if}
        
        {hascontent}
                <nav class="contentFooterNavigation">
index caa87a9af2776837d1fa8b6f834552d41055167c..7bc9e8539628d6101ceedfeb4b633e93db13185d 100644 (file)
        </nav>
 </header>
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}{pages print=true assign=pagesLinks controller="PersonList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $objects|count}
        <div class="section tabularBox">
        </div>
        
        <footer class="contentFooter">
-               {hascontent}
+               {if $pages > 1}
                        <div class="paginationBottom">
-                               {content}{@$pagesLinks}{/content}
+                               <woltlab-core-pagination
+                                       page="{$pageNo}"
+                                       count="{$pages}"
+                                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                               ></woltlab-core-pagination>
                        </div>
-               {/hascontent}
+               {/if}
                
                <nav class="contentFooterNavigation">
                        <ul>
index 089b0fa79e02ddbf79e475ef730cc6099f537a9a..1838c02c5931a3f59da2529adab5f5fe0d00a984 100644 (file)
 
 {include file='header'}
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}
-                       {pages print=true assign=pagesLinks controller='PersonList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}
-               {/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $items}
        <div class="section sectionContainerList">
 {/if}
 
 <footer class="contentFooter">
-       {hascontent}
+       {if $pages > 1}
                <div class="paginationBottom">
-                       {content}{@$pagesLinks}{/content}
+                       <woltlab-core-pagination
+                               page="{$pageNo}"
+                               count="{$pages}"
+                               url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                       ></woltlab-core-pagination>
                </div>
-       {/hascontent}
+       {/if}
        
        {hascontent}
                <nav class="contentFooterNavigation">
index caa87a9af2776837d1fa8b6f834552d41055167c..7bc9e8539628d6101ceedfeb4b633e93db13185d 100644 (file)
        </nav>
 </header>
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}{pages print=true assign=pagesLinks controller="PersonList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $objects|count}
        <div class="section tabularBox">
        </div>
        
        <footer class="contentFooter">
-               {hascontent}
+               {if $pages > 1}
                        <div class="paginationBottom">
-                               {content}{@$pagesLinks}{/content}
+                               <woltlab-core-pagination
+                                       page="{$pageNo}"
+                                       count="{$pages}"
+                                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                               ></woltlab-core-pagination>
                        </div>
-               {/hascontent}
+               {/if}
                
                <nav class="contentFooterNavigation">
                        <ul>
index 089b0fa79e02ddbf79e475ef730cc6099f537a9a..1838c02c5931a3f59da2529adab5f5fe0d00a984 100644 (file)
 
 {include file='header'}
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}
-                       {pages print=true assign=pagesLinks controller='PersonList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}
-               {/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $items}
        <div class="section sectionContainerList">
 {/if}
 
 <footer class="contentFooter">
-       {hascontent}
+       {if $pages > 1}
                <div class="paginationBottom">
-                       {content}{@$pagesLinks}{/content}
+                       <woltlab-core-pagination
+                               page="{$pageNo}"
+                               count="{$pages}"
+                               url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                       ></woltlab-core-pagination>
                </div>
-       {/hascontent}
+       {/if}
        
        {hascontent}
                <nav class="contentFooterNavigation">
index caa87a9af2776837d1fa8b6f834552d41055167c..7bc9e8539628d6101ceedfeb4b633e93db13185d 100644 (file)
        </nav>
 </header>
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}{pages print=true assign=pagesLinks controller="PersonList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $objects|count}
        <div class="section tabularBox">
        </div>
        
        <footer class="contentFooter">
-               {hascontent}
+               {if $pages > 1}
                        <div class="paginationBottom">
-                               {content}{@$pagesLinks}{/content}
+                               <woltlab-core-pagination
+                                       page="{$pageNo}"
+                                       count="{$pages}"
+                                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                               ></woltlab-core-pagination>
                        </div>
-               {/hascontent}
+               {/if}
                
                <nav class="contentFooterNavigation">
                        <ul>
index 96a9dca4865d39fe74d1330799e1270e77d011f4..55636ffd853926ae344a46d4b88d98e2d61882bc 100644 (file)
 
 {include file='header'}
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}
-                       {pages print=true assign=pagesLinks controller='PersonList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}
-               {/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $items}
        <div class="section sectionContainerList">
 {/if}
 
 <footer class="contentFooter">
-       {hascontent}
+       {if $pages > 1}
                <div class="paginationBottom">
-                       {content}{@$pagesLinks}{/content}
+                       <woltlab-core-pagination
+                               page="{$pageNo}"
+                               count="{$pages}"
+                               url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                       ></woltlab-core-pagination>
                </div>
-       {/hascontent}
+       {/if}
        
        {hascontent}
                <nav class="contentFooterNavigation">
index caa87a9af2776837d1fa8b6f834552d41055167c..7bc9e8539628d6101ceedfeb4b633e93db13185d 100644 (file)
        </nav>
 </header>
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}{pages print=true assign=pagesLinks controller="PersonList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $objects|count}
        <div class="section tabularBox">
        </div>
        
        <footer class="contentFooter">
-               {hascontent}
+               {if $pages > 1}
                        <div class="paginationBottom">
-                               {content}{@$pagesLinks}{/content}
+                               <woltlab-core-pagination
+                                       page="{$pageNo}"
+                                       count="{$pages}"
+                                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                               ></woltlab-core-pagination>
                        </div>
-               {/hascontent}
+               {/if}
                
                <nav class="contentFooterNavigation">
                        <ul>
index 96a9dca4865d39fe74d1330799e1270e77d011f4..55636ffd853926ae344a46d4b88d98e2d61882bc 100644 (file)
 
 {include file='header'}
 
-{hascontent}
+{if $pages > 1}
        <div class="paginationTop">
-               {content}
-                       {pages print=true assign=pagesLinks controller='PersonList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}
-               {/content}
+               <woltlab-core-pagination
+                       page="{$pageNo}"
+                       count="{$pages}"
+                       url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+               ></woltlab-core-pagination>
        </div>
-{/hascontent}
+{/if}
 
 {if $items}
        <div class="section sectionContainerList">
 {/if}
 
 <footer class="contentFooter">
-       {hascontent}
+       {if $pages > 1}
                <div class="paginationBottom">
-                       {content}{@$pagesLinks}{/content}
+                       <woltlab-core-pagination
+                               page="{$pageNo}"
+                               count="{$pages}"
+                               url="{link controller='PersonList'}sortField={$sortField}&sortOrder={$sortOrder}{/link}"
+                       ></woltlab-core-pagination>
                </div>
-       {/hascontent}
+       {/if}
        
        {hascontent}
                <nav class="contentFooterNavigation">