We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8376
    • 5 Posts
    Hi,

    I’m trying to customise my results page pagination with a ’Page X of Y’ and previous/next links. Are there ready-made placeholders for this? I’ve looked through the wiki and forum but can’t find a howto.

    Cheers


    My &tplPaging template:
    [+as.tpl:is=`paging`:then=`
    <div class="pagination">
    
    <p>PAGE X of Y</p>
    
    <div>
    
    <a href="#" class="btn-next">next</a>
    
    <ul>
        [+as.pagingLinks+]
    </ul>
    
    <a href="#" class="btn-previous">previous</a>
    
    </div>
    </div>
    `+]
    
    [+as.tpl:is=`pagingLinks`:then=`
      <li><a href="[+as.pagingLink+]">[+as.pagingText+]</a></li>
    `+]
    
    [+as.tpl:is=`pagingLinksCurrent`:then=`
      <li class="active">[+as.pagingText+]</span></li>
    `+]