Is it possible for a node to extend/inherit jcr content node (properties and child nodes) | Community
Skip to main content
Level 2
October 16, 2015
Solved

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

  • October 16, 2015
  • 1 reply
  • 724 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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.

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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.