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

    I updated getPage on my Modx Revolution 2.1.3pl. The pagination worked quite well with 1.1.0 but now I get the pagination as usual and something like this on the top of my site:
    array(3) { ["pages"]=> string(445) "
    1
    2
    3
    4
    5
    6
    " ["next"]=> string(76) "
    »
    " ["last"]=> string(78) "
    Letzte
    " } 


    My getPage call is:
    [[!getPage? 
              &element=`getResources`
              &parents=`[[*rubricChoose]]` 
              &tpl=`rubricOutput` 
              &limit=`5` 
              &pageLastTpl=`<li><a[[+classes]] href="[[+href]]" title="Zum letzten Eintrag">Letzte</a></li>`
              &pageFirstTpl=`<li class="control"><a[[+classes]] href="[[+href]]" title="Zum ersten Eintrag">Erste</a></li>`
              &pagePrevTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">«</a></li>`
              &pageNextTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">»</a></li>` 
              &includeTVs=`1` 
              &processTVs=`1`
              &tvPrefix=``
              &where=`{ "template:IN" : [ 3,5 ] }`
    ]]


    If I change the option &limit to &limit=`0` everything is okay again. If I choose a number > amount of resources nothing will be shown. Is this a bug of the new version? [ed. note: waivor last edited this post 15 years, 1 month ago.]
      • 22303 MODX Staff
      • 10,725 Posts
      There was a debug statement left in the code in 1.2.0-pl by accident; please try 1.2.1-pl which is now released — http://modx.com/extras/package/getpage