<nav class="line-paginator"> <a href="#" class="prev page-numbers">Previous</a> <span class="page-numbers current">1</span> <a href="#" class="page-numbers">2</a> <a href="#" class="page-numbers">3</a> <a class="page-numbers">...</a> <a href="#" class="page-numbers">14</a> <a href="#" class="next page-numbers">Next</a> </nav>
[[!+page.nav:notempty=`<nav class="line-paginator"> <ul class="page-numbers"> [[!+page.nav]] </ul></nav>`]]
This question has been answered by nir-z. See the first response.
I understand I have to create property sets, but I'm not sure which ones, or even what part of them to change. EG Do I just change the "control" class or is there somethign else I have to do?
Hi Mark G
You can find your solution here
http://rtfm.modx.com/extras/revo/getpage
You should add class of li which you want on element page.
[[!getPage@myPaging? ................ ]]
Hi Mark,
You need to go to the getPage snippet -> properties tab -> Add property set. (myPaging)
once you do that, you can edit the properties: pageActiveTpl, pageFirstTpl...
And finally call the getPage like this:
[[!getPage@myPaging? ................ ]]
class="prev page-numbers"
<a href="[[+href]]" class="page-numbers">[[+pageNo]]</a>
<span class="page-numbers current">[[+pageNo]]</span>
<a href="[[+href]]" class="prev page-numbers">Previous</a>
[[+prev]][[+pages]][[+next]]
<nav class="line-paginator"> </nav>
<nav class="line-paginator"> [[+prev]][[+pages]][[+next]] </nav>
<ul>[[!getPage@myPaging? &elementClass=`modSnippet` &element=`getResources` &tpl=`gridpost2` &parents=`123` &depth=`2` &limit=`10` &includeContent=`1` &includeTVs=`1` &showHidden=`0` &hideContainers=`1` &cache=`0` &pageVarKey=`page` ]] </ul>