I’m having a lot of trouble with pagination, I am building a mini-site and I simply want "<< prev | next >>" links.
I’ve tried:
- getPage with getResources
- getResources
- Wayfinder
but I can’t seem to get the results I want. Is there a simple way to get the next/prev resource in the site tree?
Seen this in an other threat:
http://modx.com/extras/package/selflink
Works very well!
#EDIT
Some css styling for getPage:
<style>
.paging ul{list-style:none; margin:0; padding:0; float:right; font-size:11px;}
.pageList li{float:left;}
.pageList li a{color:#fff; display:block; padding:0px 7px; margin-left:4px; background-color:#000; font-weight:normal; text-decoration:none;}
.pageList li a:hover{color:#000; background-color:#fff;}
a.active {color:#000; background-color:#f00!important; }
a:hover.active {color:#fff!important;}
</style>
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
<div class="clear"></div>
Evolution user, I like the back-end speed and simplicity
