On Mon, 2009-09-28 at 15:38 +0200, Bert Leunis wrote:
> 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!
Most likely the activation rule ... by default only the type and all
children of the MetaData and/or dataItemNode types will be activated. To
include the other types in the activation, you would have to change the
rule.
See i.m.m.data.trees.JCRAdminTree.getActivationSyndicator(String) method
for details.
HTH,
Jan
>
>
>
> Best regards, Bert
>
>
>
>
>
>
>
> ______________________________________________________________________
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------