We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20613
    • 18 Posts
    I have set up pagination in MaxiGallery and was wondering whether any one knows how to highlight the current page?
      • 28042 ☆ 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
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 20613
        • 18 Posts
        Thank you will give that go smiley