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

On Aug 11, 2006, at 2:32 PM, Chris Miner wrote:



I have written a tree handler for a workspace I want to manage and would like to access open the dialog for items shown in the tree view. I see this is do-able by setting the doubleclick action for a tree. I see the Groups, Users, & Roles tree configs hard code the dialog name to open. Unlike these trees my tree has mixed items. Imagine Groups, Users, and Roles in one view.

So I wonder if anyone has a suggestion of where I might stash the dialog name so that it is available via the selectedNode from javascript? Perhaps stuff it in the selectedNodes params somehow? Or is there a better way to do this?

----------------------------------------------------------------
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