On Aug 17, 2006, at 1:04 PM, Chris Miner wrote:

Hi,

Sorry for the late follow up, I was out of the office. Couple of questions
regarding your solution.  Is the data module you refer to also called
the 'dms-module'?

No it is a module to manage any data (products, customers, ...). It makes it very easy to create new types of data (creates nodetypes, dialg, tree, ....). But this is currently not open code.

Are you still using this bit of code or something like it?
I didn't find it in the source tree, but maybe I don't have the right
version.

So this is not a snipped available on svn

Next question, did you define a new custom repository data type
called 'dataFolder' in order to use this as a discriminator when bringing up the right dialog? And did you simply name you dialog after your new type, or

Yes
are you using a built-in feature of Magnolia's dialog system that knows
something about the relationships between types and dialogs?
No

And finally how did you get your bit of javascript code loaded up as you access your custom tree view? My tree is brought up by a menu item I set up
The cool thing in magnolia 3.0 is that all js files in the resources under js-classes are loaded by default.

You can see this in the adminInterface module or in the DMS if you like.

with a call to MgnlAdminCentral.showTree('luxoom-jcr'); Looking at that code I didn't see how to get my tree related javascript loaded up as well. I can
See the answer above. If you need to load other things you will be able to do it by subclassing the tree handler.

certainly toss it in somewhere, but wonder if there is an intended point of
integration I should be using?

Hope will help


Chris

Am Donnerstag, 17. August 2006 11:35 schrieb Philipp Bracher:
Add your own js mehtod like editNode(tree)

In the method you can open the edit dialog based on the itmeType or
the selected path

Here a snipped I use in the data module

     edit : function(tree, dialog){
        // do not edit folder
        if(tree.selectedNode.itemType == "dataFolder"){
                return;
        }
        mgnlTreeMenuOpenDialog(tree,".magnolia/dialogs/" +
tree.selectedNode.itemType + ".html");
     },

Philipp


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to