-
☆ A M B ☆
- 721 Posts
Hi,
I understand how to set the first, last, active, next, previous, next page styles and how to jump out of the default container by using [[!+page.nav:notempty=`<div class="custom-class">[[!+page.nav]]</div>`]] but I also need a page index like:
Page 1 of 4 | First << 1 2 3 4 >> Last
Can't seem to see any examples anywhere. Any suggestions?
-
☆ A M B ☆
- 2,475 Posts
Articles is definitely short on examples. Take a look at some of the code in core/components/articles -- in particular the stuff that extends the modResource class. If I remember correctly, there is code there directly injected into the content of the blog container - it has a snippet with some pagination configuration details in it.