The whole Revo manager is based on the ExtJs framework. Primarily you should check the ExtJs documentation.
If you want to extend the manager components, that will be a bit of a discovery project as there’s not much documentation.
An un-minified version of modext.js should be in modx/manafer/assets/modext directory.
I extended a couple of classes (combobox, date selector) and after a bit of trial and error got everything working (a good Javascript debugger is quite helpful).
MODx Revolution / MAMP / OS X
Right. My guess is that at the moment you’ll have to delve in the code and explore.
Or ask specific questions.
MODx Revolution / MAMP / OS X
Ok , a specific question.
My intention is to create in the manager new/update document form view of a visual representation of the children documents as list.
What is the recommended approach for doing this?
Thanks.
Not too sure if I understand what you want to do. If it involves the manager Tree view you might want to take a look at the MODx Tree class.
/**
* Generates the Tree in Ext. All modTree classes extend this base class.
*
* @class MODx.tree.Tree
* @extends Ext.tree.TreePanel
* @constructor
* @param {Object} config An object of options.
* @xtype modx-tree
*/
MODx.tree.Tree = function(config) {
...
You’ll probably have to tear that apart and examine its workings and take it from there to see how you can integrate your app. You could make a small prototype of your app as a CMP (Custom Manager Page). Using CMP’s allows you to package them as "modules" and should make it relatively easy to use them in future releases of MODx.
Hope this helps.
MODx Revolution / MAMP / OS X
No, nothing related to the Tree. The Tree is just a diferent view in the leftBar. I want to create a different view inside the document update form. So under the fields for editing pagetitle, content, etc I want to add a view typology for the kids collection.
Thanks.
Right. Maybe you can do something with a plugin and a CMP? A plugin can be hooked to certain events. Maybe there’s an event that you can use and show a CMP with you custom view when that specific event is triggered. Otherwise - if you directly modify the Update Document window - you’d be changing the core and I don’t think if that’s a good way to go...
MODx Revolution / MAMP / OS X
A CMP could do it but I really want to use everything that the manager is doing regarding the resource fields and TVs form update. Is there a easy way to reproduce that in a CMP?
Thank you.
CMP’s are a challenge:
- Not very much documentation
- ExtJs is a challenging framework with a rather steep learning curve.
I suppose it can be done. CMP’s are basically manager panels wrapped as "individual apps".
MODx Revolution / MAMP / OS X