We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39356
    • 8 Posts
    Hi,
    I want to change the output behaviour of the outer pagination template. Currently, the 'go-to-first-page' and 'go-to-last-page' are not showed when you are on the first or on the last page, respectively.
    What I want is to always display them, disabled if clicking on them doesn't make sense.
    So far, I didn't find the solution.
    Thanks for help in advance [ed. note: zverolen last edited this post 10 years, 6 months ago.]
      • 39356
      • 8 Posts
      And an additional question
      I also want to show the [[!+page.nav]] wrapper only when the pagination loads, in other words, when the resources limit is exceeded (marked on the included screenshot). Currently it is always rendered.
      Can I set it somewhere in the snippet properties or should I use some kind of condition when I call getPage?
      The wrapper has styles and I don't dream of messing with the html structure.
      Thanks
        • 22840
        • 1,572 Posts
        Quote from: zverolen at Mar 24, 2016, 03:57 AM
        And an additional question
        I also want to show the [[!+page.nav]] wrapper only when the pagination loads, in other words, when the resources limit is exceeded (marked on the included screenshot). Currently it is always rendered.
        Can I set it somewhere in the snippet properties or should I use some kind of condition when I call getPage?
        The wrapper has styles and I don't dream of messing with the html structure.
        Thanks

        This any good ? http://stackoverflow.com/questions/22636672/modx-getpage-pagenav-placeholder-always-has-a-value
          • 39356
          • 8 Posts
          Quote from: paulp at Mar 24, 2016, 05:17 AM


          This any good ? http://stackoverflow.com/questions/22636672/modx-getpage-pagenav-placeholder-always-has-a-value

          Yes, it seems to be the thing, thank you. I need to try it though, but i think it'll work.