Hi,
I have a getPage call which includes pagination as per the example code below. This all works fine when I call the getPage call uncachned - but, to speed up page load, I want to call it cached - if I do this, the pagination does not work - clicking on the 2nd page button brings up the 1st page - it just plain and simply does not work...
Can the pagination not work if the getPage call is cached???
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`20,32,305`
&limit=`12`
&pageVarKey=`page`
&includeTVs=`1`
&processTVs=`1`
&includeContent=`1`
&tpl=`NewsArticleTpl`
&tvPrefix=``
&sortby=`{"publishedon":"DESC"}`
&showHidden=`1`
&pageNavVar=`Both.nav`
&includeTVList=`myTVs`
]]
<div class="paging">
<ul class="pageList">
[[+Both.nav]]
</ul>
</div>
Anyone any ideas?
e.g. changing the code to below means the pagination fails:
[[getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`20,32,305`
&limit=`12`
&pageVarKey=`page`
&includeTVs=`1`
&processTVs=`1`
&includeContent=`1`
&tpl=`NewsArticleTpl`
&tvPrefix=``
&sortby=`{"publishedon":"DESC"}`
&showHidden=`1`
&pageNavVar=`Both.nav`
&includeTVList=`myTVs`
]]
<div class="paging">
<ul class="pageList">
[[+Both.nav]]
</ul>
</div>