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'?  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.

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 
are you using a built-in feature of Magnolia's dialog system that knows 
something about the relationships between types and dialogs?

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 
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 
certainly toss it in somewhere, but wonder if there is an intended point of 
integration I should be using?

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

Reply via email to