Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Is it possible for a node to extend/inherit jcr content node (properties and child nodes)

Avatar

Level 2

I need to add a new menu item to siteadmin under create->menu of /libs/wcm/core/content/siteadmin. Now, one way to do that might be to make a complete copy under apps/<my-app>/wcm/core/content/siteadmin which works fine. But, I would like to NOT do a deep/complete copy of siteadmin instead have my app/<my-app>/wcm/core/content/customsiteadmin extend the lib's siteadmin and be able to add the additional node(s) that i require.

Is it possible to achieve this, if so could someone please tell me what node type/properties that I require on my customsiteadmin node to override/extend the siteadmin nodes ?

I have tried using sling:resourceSuperType=/libs/wcm/core/content/siteadmin to the customsideadmin node which doesn't work. I guess the sling:resourceSuperType is only for overriding script resolution? but the node that I'm trying to override is a like a content node

Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Read the "Inheritance Among Node Types" documentation on this subject that can be found here:

http://www.day.com/specs/jcr/1.0/6.7.8_Inheritance_Among_Node_Types.html

http://jackrabbit.apache.org/node-types.html

Both topics cover inheritance of nodes. 

Hope these JCR topics help.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Read the "Inheritance Among Node Types" documentation on this subject that can be found here:

http://www.day.com/specs/jcr/1.0/6.7.8_Inheritance_Among_Node_Types.html

http://jackrabbit.apache.org/node-types.html

Both topics cover inheritance of nodes. 

Hope these JCR topics help.