We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I'm hoping eventually the Manager backend (can a backend have a backend?) will become more flexible; I've already hacked it three times:

    1. to allow for the management of an upload and a download area for web users (my client's freelance workers needed access to documents they need to work on, and a place to upload the finished work). I completely removed the File Management item, I shudder to think of the havoc my clients could wreak on their site if they had unfettered access like that, while they do need to be able to have controlled access to the upload/download directories their workers will use. I didn't want that to be front-end access, because that would confuse them to sometimes manage their stuff from Manager and sometimes from the website.

    2. database access for other web users (created a new table for this data, with an additional field for username, so when the web user logs in he goes to the page and the only data he sees is his data) that also needs to be managed from Manager (uploading a .csv file for insertion, either a new user's data or replace/append an existing user's data, editing of specific user's data, etc). Again, I wanted all of their management tasks to be in one place.

    3. move the web user management to its own page, adding the ability to search for specific users by username/full name/email, and listing by alphabet. (Ajax here? Yes!!!)

    The part I can most easily visualize automating is the Manager menu (frame 2.php right now); there can be a table in the database for it, with section, name, and various ID and action fields. Then adding/deleting menu items would be quite simple.

    The Manager index.php file's switch section would have to be built in a similar manner, possibly from the same table, if all the necessary stuff is stored there. This could be leveraged to make a more organized switch section, too.

    These could be cached? Since they usually wouldn't change all that much (except on my dev machine...)

    Actions, includes, and processors could be handled the same as they are now; saved as .php files in the same directories they are now.
      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
      • 34162
      • 1 Posts
      I've actually done something similiar on my own copy:

      I took the frame using the document tree and made it fill the entire column.

      I then moved the menu to a DHTML dropdown menu, just like an application, that is in a frame above the main content frame.

      Using a homegrown permission system and some new calls, menus and submenus register themselves with the system and only show choices the account can actually perform.

      The nice thing: the entire thing works identically cross browser, too. smiley

      You can see a screenshot here:
      • Very cool info, infoclipper!

        Now, is there any real reason that you see to keep everything in frames? I'd love to get rid of them and restore proper back-button functionality to the browsers.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 34162
          • 1 Posts
          Very cool info, infoclipper!

          Now, is there any real reason that you see to keep everything in frames? I'd love to get rid of them and restore proper back-button functionality to the browsers.

          No, not at all. I originally set about ripping out all the frames but realized that once I did I was going to be so far removed from the original that I would be completely on my own as far as ideas and development went.

          At the time, I didn't want to do that. Now that there are more of us, though, I'm all about demolishing the frames. laugh
            • 32963
            • 1,732 Posts
            Wow! This is looking great!

            Is it possible for you to share those menus and layout? Can we integrate it as another layout option? Did you say it's cross-browser? Wow!

            Link me up if the above is ok with you.

            I like your new menu arrangement smiley


            I've actually done something similiar on my own copy:

            I took the frame using the document tree and made it fill the entire column.

            I then moved the menu to a DHTML dropdown menu, just like an application, that is in a frame above the main content frame.

            Using a homegrown permission system and some new calls, menus and submenus register themselves with the system and only show choices the account can actually perform.

            The nice thing: the entire thing works identically cross browser, too. smiley

            You can see a screenshot here:
              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
            • Then I think the frames have a REALLY short life left in 'em! wink
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 34162
                • 1 Posts
                Wow! This is looking great!

                Is it possible for you to share those menus and layout? Can we integrate it as another layout option? Did you say it's cross-browser? Wow!

                Link me up if the above is ok with you.

                I like your new menu arrangement smiley


                Thanks! smiley

                Its all yours. I'll recode them using a clean CVS copy as my current changes are probably a bit more deviated from the original than you'd care for at this point (as they fully integrate two other OS projects, too).

                So once I have a CVS checkout and I have the menus and permissions done, how do you want me to give it back to you?
                  • 34162
                  • 1 Posts
                  Then I think the frames have a REALLY short life left in 'em! wink

                  Sweet! cool

                  I'll go fetch my sledgehammer!
                  • Wait for any code changes until after tomorrow, when there should be a MAJOR commit to the CVS. Were you able to login/checkout?
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 34162
                      • 1 Posts
                      Wait for any code changes until after tomorrow, when there should be a MAJOR commit to the CVS. Were you able to login/checkout?

                      Haven't sent my public key yet. shockedops: