We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10487 MODX Staff
    • 1,535 Posts
    Hi all,

    Right, having spent the last two days blitzing this module I think I’m ready for a first test release. smiley

    The module is an expansion of the ’Template Changer’ module I released a few weeks ago, and now incorporates Document Permissions, an integrated as-is version of Menu Index, and the ability to set other document properties across a range of documents (show/hide in menu, make searchable/unsearchable, make cacheable/uncacheable, use richtext/no richtext).

    The module should be unzipped and the ’docmanager’ folder copied into the ’assets/modules’ directory of your install. Then, create a new module and copy and paste the docmanager_module.txt file into it. And then, run the module!

    Please bear in mind that this module uses a modified SLLists.class.php file so make sure you use the one included in the package.

    I think this is destined for 0.9.2 (well, as long as it’s approved wink ) so if people could test and feedback asap then it would be appreciated.

    Thanks, Garry

    EDIT: Version 1c has now been uploaded.
      Garry Nutting
      Senior Developer
      MODX, LLC

      Email: [email protected]
      Twitter: @garryn
      Web: modx.com
      • 32241
      • 1,495 Posts
      That’s a good improvement for the backend, and combined with Susan’s menu module, this will be a great enchancement to usability of current MODx manager.

      Two thumbs up to all your great contributions Garryn.
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 6726
        • 7,075 Posts
        This will simplify things SO much !

        I’ll install this and report, a very nice module and yeah it does belong to 0.9.2, this will just *rock* !!!
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id
          • 25663 MODX Staff
          • 12,272 Posts
          Hi Garry... this is sweet!

          Some comments:

          • The menu index sorter is not working in Safari. When you click the icon menu item name to start the sorting, it loads the document.
          • For 0.9.2 all the references to icons and stylesheets has changed considerably. Contact me if you need a test build if you can’t grab it from SVN.
          • How about adding the ability to edit the created/edited date and author to the other properties tab?
          • Does this register an event in the event log for auditing purposes?

          Very well done!
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 32241
            • 1,495 Posts
            Yup I think invoking certain events will be great, so plugins that use this event will works just find when somebody use this module.
              Wendy Novianto
              [font=Verdana]PT DJAMOER Technology Media
              [font=Verdana]Xituz Media
              • 10487 MODX Staff
              • 1,535 Posts
              Quote from: rthrash at Mar 25, 2006, 08:49 AM

              • The menu index sorter is not working in Safari. When you click the icon menu item name to start the sorting, it loads the document.
              • For 0.9.2 all the references to icons and stylesheets has changed considerably. Contact me if you need a test build if you can’t grab it from SVN.
              • How about adding the ability to edit the created/edited date and author to the other properties tab?
              • Does this register an event in the event log for auditing purposes?

              Lol, why is it always the browser that I don’t have access to that breaks? I’ll cross-check the code and see if I can figure out the problem. (@Ryan - does clicking the icon work as expected or is it both the icon and menu item name that break? )

              I’ll give the stylesheets a thorough check using 0.9.2 tonight and look at getting the extra options included as well. At the moment, it doesn’t log any entries in the event log but shouldn’t be too difficult to get event logging up and running.

              Thanks, Garry
                Garry Nutting
                Senior Developer
                MODX, LLC

                Email: [email protected]
                Twitter: @garryn
                Web: modx.com
                • 25663 MODX Staff
                • 12,272 Posts
                No clicking anywhere works at all in Safari.

                BTW, the standalone Menu Index does in fact work in Safari even in the latest build.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 10487 MODX Staff
                  • 1,535 Posts
                  Hi all,

                  Just a quick update on some of the problems I’ve found myself that will need fixing:

                  1. Image links are broken in the latest 0.9.2 build (although the theme does update in line with the theme selected for the manager grin )
                  2. There are some minor Internet Explorer CSS issues (corrected already in my dev code)
                  3. The problem with the Menu Index seems to be the code used to hide the Document Selection section when the ’Sort Menu’ tab is selected. It appears to cause a JS error that then stops the Menu Index JS working (this will need testing out though on Safari to be certain) - my search for a workaround has been fruitless so might just have to remove the function completely sad

                  Anyway, I’ll be working through this tomorrow so will, hopefully, be able to post an updated version tomorrow evening.

                  Thanks, Garry



                    Garry Nutting
                    Senior Developer
                    MODX, LLC

                    Email: [email protected]
                    Twitter: @garryn
                    Web: modx.com
                    • 10487 MODX Staff
                    • 1,535 Posts
                    I’ve uploaded a new test version in the first post.

                    Changes are:


                    • Made modifications to the javascript which should hopefully get the Menu Index running in Safari.
                    • Fully tested in the latest SVN build of 0.9.2, and tested that themes are applied correctly in FF and IE.
                    • New options added for dates (created on, edited on, publish date, unpublish date) and authors (created by, edited by)
                    • Hooks into the Manager Access log to record an occurrence of an update and the type of update that has been made.
                    • Now clears the cache automatically when a template change has been made.
                    • Removed the external CSS for the module and brought it into a function so that the theming could be controlled.


                    Thanks, Garry
                      Garry Nutting
                      Senior Developer
                      MODX, LLC

                      Email: [email protected]
                      Twitter: @garryn
                      Web: modx.com
                      • 25663 MODX Staff
                      • 12,272 Posts
                      Sounds like very good changes, but now I’m getting an undefined function problem:

                      Fatal error: Call to undefined function buttonCSS() in /home/httpd/vhosts/pixelhick.com/httpdocs/manager/processors/execute_module.processor.php(103) : eval()’d code on line 132
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me