We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23094
    • 59 Posts
    I have problem with pagination. My parent (100) has 17 items. First page is shown OK, but the second displays random items (some of them from first page). What could be wrong?

    [[!getPage? 
    
    &elementClass=`modSnippet` 
    &element=`getResources` 
    &parents=`100`  
    &limit=`9` 
    
    &pageVarKey=`page` 
    
    &includeTVs=`1`  
    &processTVs=`1` 
    &showHidden=`1` 
    &includeContent=`1` 
    &sortby=`menuindex` 
    &sortdir=`ASC` 
    &hideContainers=`1` 
     
    &pageFirstTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">First</a></li>` 
    &pageLastTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Last</a></li>` 
    
    &tpl_n3=`tplCloseRow` 
    &tplLast=`tplLastRow`
    &tplFirst = `tplFirstRow` 
    &tpl=`photosTpl` 
    ]] 
    
    <div class="paging"> <ul class="pageList pagination"> [[!+page.nav]] </ul> </div>
    
      • 23094
      • 59 Posts
      I found it... I should use non cached [[!$chunk]] instead of [[$chunk]] inside &tpl_n3, &tplLast, &tplFirst