We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8168
    • 1,118 Posts
    Hi guys,
    Using getPage to paginate a getResources call - but its not returning all the results it should... its showing 3 paginated views of results when there are loads more... how can I force it to display all results??

    [[!getPage?
       &elementClass=`modSnippet`
       &element=`getResources`
       &parents=`20,32,305`
       &limit=`12`
       &pageVarKey=`page`
       &includeTVs=`1`
       &processTVs=`1`
       &includeContent=`1`
       &tpl=`BlogAndNewsArticleTpl`
       &tvPrefix=`` &sortby=`{"publishedon":"DESC"}`
       &showHidden=`1`
    ]]
    


    'Limit' as used by getPage defines the number of results per page - but in getResources it defines the total number of resources to return...?

    This question has been answered by dubbs. See the first response.

      • 8168
      • 1,118 Posts
      Just dropped in a 2nd code call and also pagination stops at 3 despite their being loads more resources to pull in... Is there a way the pagination is being forced?
        • 8168
        • 1,118 Posts
        Its like the pagination is not connected to the getPage call... It always shows 3 pages... despite the limit setting on the getPage call... any ideas???
        • discuss.answer
          • 8168
          • 1,118 Posts
          Fixed it...

          Was using:

          [[!+page.nav]]
          


          Should be using:

          [[+page.nav]]