We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 309
    • 24 Posts
    Does anybody know how to get the user list for managers to automatically show all pages?

    Here is the variable in actions/web_user_management_static.

    // get & save listmode
    Line 24:  $listmode = isset($_REQUEST['listmode']) ? $_REQUEST['listmode']:$_PAGE['vs']['lm'];
    Line 25:  $_PAGE['vs']['lm'] = $listmode;



    This is the function that toggles it on lines 48-53.
     function changeListMode(){
            var m = parseInt(document.resource.listmode.value) ? 1:0;
            if (m) document.resource.listmode.value=0;
            else document.resource.listmode.value=1;
            document.resource.submit();
        };


    I show the entire list every time I am editing users and I would like it to just be open by default.
      • 309
      • 24 Posts
      If I would have just looked at the comments our friend Modx developer provided.

      Change line 119 from
      $grd = new DataGrid('',$ds,$number_of_results); // set page size to 0 t show all items


      To this...
      $grd = new DataGrid('',$ds,0); // set page size to $number_of_results for pagination