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

    I’m a bit of a newbie so I may have done something silly but for some reason getpages does not show the pagination links.

    I am using xampp so developing locally and using the latest version of Revolution. The code for my get page call is as follows:

    <div class="three_column" id="main_content">
    [[!getPage?
    &elementClass=`modSnippet`
    &element=`getResources`
    &tplFirst=`NewsFirstArt`
    &tpl_2=`NewsMedArt`
    &tpl_3=`NewsMedArt`
    &tpl_4=`NewsMedArtLast`
    &tpl=`NewsSmallArt`
    &parents=`[[*id]]`
    &limit=`7`
    &showHidden=`1`
    &includeContent=`1`
    &includeTVs=`1`
    &processTVs=`1`
    &tvPrefix=``
    &pageLimit=`5`
    &pageNavVar=`page_navigation’
    ]]

    <div class="page_nav">[[!+page_navigation]]</div>
    </div>

    The get resources call is working but the pagination just doesn’t show up at the bottom.

    Any help would be much appreciated

      • 22303 MODX Staff
      • 10,725 Posts
      You have a single quote (’) instead of a backtick (`) on the &pageNavVar=`page_navigation’ part.
        • 34907
        • 2 Posts
        Ah thanks! Been scratching my head over this for ages, a very silly and simple mistake.