Hello All,

We ran into some activation issues when we started to work with the new 
hierarchical types in the datamodule. Activation as it is configured now does 
not activate subnodes, and of course we need that now here. I added an extra 
option to the context menu that says "Activate incl. sub nodes". This code 
takes care of that:

        ContextMenuItem menuActivateIncl = new 
ContextMenuItem("activateInclSubs");
        
menuActivateIncl.setLabel(msgs.get("tree.config.menu.activateInclSubs"));
        menuActivateIncl.setIcon(request.getContextPath() + 
"/.resources/icons/16/arrow_right_green_double.gif");
        menuActivateIncl.setOnclick(tree.getJavascriptTree() + ".activateNode(" 
+ Tree.ACTION_ACTIVATE + ",true);");

Unfortunately when using that option, only the top node is activated, not the 
subnodes. I guess I need to add a command to the config somewhere. Now I run 
into a dark forest. Is my guess right? Is there any example that I can use? All 
help appreciated!

Best regards, Bert


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to