I have set up pagination in MaxiGallery and was wondering whether any one knows how to highlight the current page?
-
☆ A M B ☆
- 24,524 Posts
The pagination template is assets/snippets/maxigallery/templates/pagenumbertpl.html. You can either edit this one, or specify your own chunk tpl with the &pageNumberTpl paramter.
[+maxigallery.currentpage:is=`[+maxigallery.pagenumber+]`:then=`
[+maxigallery.pagenumber+] |
`:else=`
<a href="[+maxigallery.pageurl+]">[+maxigallery.pagenumber+]</a> |
`+]
The first part is how the current page is displayed. Add whatever you want to that:
[+maxigallery.currentpage:is=`[+maxigallery.pagenumber+]`:then=`
<span id="currentpage">[+maxigallery.pagenumber+]</span> |
`:else=`
<a href="[+maxigallery.pageurl+]">[+maxigallery.pagenumber+]</a> |
`+]
then style the #currentpage in your CSS file.
#currentpage{font-weight:bold;text-transform:uppercase;color:red;}
http://wiki.modxcms.com/index.php/MaxiGallery#pageNumberTpl