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
-
MODX Staff
- 10,725 Posts
You have a single quote (’) instead of a backtick (`) on the &pageNavVar=`page_navigation’ part.
Ah thanks! Been scratching my head over this for ages, a very silly and simple mistake.