MODxI just came across the MODx ManagerManager plugin and WOW! The flexibility of the MODx system and contributions of it’s community continues to impress me even now. One of my limitations with MODx, up till now, has been that I didn’t have a good method for specifically presenting selected fields and only those fields to an end user. If someone wanted to go in and edit a page driven only from a few fields then they had to wade past a lot of unnecessary fields including an unused content area in order to get the the Template Variables (TV), which are presented at the bottom of the document. Well, no more.

Documentation

First of all this is a very well documented and powerful plugin. The documentation is very thorough and clearly delivered. Once you download the code just navigate to assets/plugins/managermanager/docs and it will walk you through the installation and quickly move you forward to “How it Works”.

How it Works

This is intended to give you an idea of the ease of use of this plugin. As I mentioned above all you need to know is fully covered in the documents accompanying the download.

Once you have everything installed in MODx you will be presented with the option to create rules. Creation of rules is what drives the control that this plugin provides. These rules can live in either a chunk or a document within the plugins directory (assets/plugins/managermanager/mm_rules.inc.php). I attempted to utilize the chunk approach, but had no luck affecting changes until I directly edited the mm_rules.inc.php file. Once I chose that route everything worked exactly as described.

Manager Fields

One of the components that has an immediate impact for me is the ability to affect changes to the default fields within the MODx manager. These changes can be applied by user roles and by the template being used (very cool). With this plugin you can: rename fields, hide one or more fields (including TVs and the content field), change the help text, hide templates, tell fields to inherit parent document’s value, provides a default value for specific fields in new documents/folders, and synchronize the values of specified fields at edit time.

Additionally you can affect changes to tabs, widgets and sections within the MODx manager.

I am not sure that I would recommend this plugin to someone just starting out with MODx, but for a well-traveled user it seems to provide a lot of potential. It’s definitely worth getting to know.

  • dextersl2
    Hi Gregory, I love your site very informative. I have been looking for a way to have a default template used when a new resource is created by an end user. For example i tried this:

    mm_default('template', 'template_name', '4')

    also tried:

    mm_default('template', 'template_ID', '4')

    Wondering if you know a work around?
  • I don't see in the snippet docs/fields.htm documentation page where the mm_default supports that function. I have always used directories to manage this since once created the children will inherit the template of the parent. I will usually take the template field away from the user through ManagerManager too. Other than that I don't know of a more direct method for assigning a default template.
  • dextersl2
    Great, thanks for the reply, your idea gives me something else to try.
  • Geron
    Thanks for the info...would you mind posting an exmple of how it can be used?
  • Let's say I have a template that has 5 template variables associated with it. I will use the plugin to hide the rest of the normal fields that would otherwise show up (longtitle, alias, summary, content, etc...). So when the end user goes to update that page they essentially see a form specific to that template, no extraneous fields. You basically hide everything you don't want them to see. Does that make sense?
blog comments powered by Disqus