We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24374
    • 322 Posts
    I hate have to click from page to page in the Package Manager all the time. Is there some way to change the default number to show per page? It sure would be nice to have this as a system setting. I use both Revo 2.2.14 and 2.3.1.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      At least in 2.3.1 there is a "per page" option at the bottom of the page. This is only temporary, however.

      The default of 10 is hard-coded on line 86 of manager/assets/modext/workspace/package.grid.js. There are other files that also hard-code the same value, but this one seems to have the desired effect if you change its value.
        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
        • 24374
        • 322 Posts
        Quote from: sottwell at Aug 18, 2014, 02:10 PM
        At least in 2.3.1 there is a "per page" option at the bottom of the page. This is only temporary, however.
        Yes, I use that, but it's not much help because it's a one-time deal.

        Quote from: sottwell at Aug 18, 2014, 02:10 PM
        The default of 10 is hard-coded on line 86 of manager/assets/modext/workspace/package.grid.js. There are other files that also hard-code the same value, but this one seems to have the desired effect if you change its value.
        Thanks. Guess I'll have to remember to edit this after each update until this makes it into system settings. (I say hopefully!)
          • 24374
          • 322 Posts
          Quote from: sottwell at Aug 18, 2014, 02:10 PM
          The default of 10 is hard-coded on line 86 of manager/assets/modext/workspace/package.grid.js. There are other files that also hard-code the same value, but this one seems to have the desired effect if you change its value.
          I've created a system setting. Now, how do I get the javascript in this file to read that setting and use it rather than the hard coded number?
            • 3749
            • 24,544 Posts
            That should really be changed to use the default_per_page System Setting. It drives me crazy and I consider it a bug.

            Changing it to this worked for me (once I manually deleted the core/cache files):

            ,pageSize: config.pageSize || (parseInt(MODx.config.default_per_page) || 20)
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting