We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24700
    • 4 Posts
    Is there any way to make the Users list in modx manager to be sorted by ID, descending by default ?
      • 9266 ☆ A M B ☆
      • 77 Posts
      redbull10,

      Assuming that you are using a new version of MODX Revo. If you click on users and hover over the column label "ID" there is a dropdown arrow that will let you do that very thing.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Yes, but that's not 'by default'. As far as I know, that's as good as it gets, though.
          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
          • 47586
          • 8 Posts
          Quote from: sottwell at Sep 06, 2015, 09:40 AM
          Yes, but that's not 'by default'. As far as I know, that's as good as it gets, though.
          Did you found the solution? I need to do the same.

          Thanks.
            • 53339
            • 28 Posts
            There is a solution, you need to create a plugin with the code:
            switch ($modx->event->name) {
                case 'OnManagerPageBeforeRender':
                    if($controller->config['controller'] == "security/user") {
                        $controller->addHTML('
                            <script>
                                Ext.ComponentMgr.onAvailable("modx-panel-users", function () {
                                    this.items[1].items[1].baseParams = {
                                        action: "security/user/getList",
                                        usergroup: MODx.request["usergroup"] ? MODx.request["usergroup"] : "",
                            	    sort: "id", 
                                        dir: "desc"
                                    };
                                });
                            </script>
                        ');
                    }
                break;
            }

            taken from here
              заметки для веб мастеров Привилегия.ру