what JCR node type combinations are possible? | Community
Skip to main content
jayv25585659
Level 8
June 12, 2022
Solved

what JCR node type combinations are possible?

  • June 12, 2022
  • 2 replies
  • 808 views

as above.

 

To better explain the question, I have this example:

 

I have this node (/content/data/marketo/events) of type nt:folder. In CRXDE if I create a new node of type nt:unstructured inside the events folder, I would get an error.

 

Thanks

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 arunpatidar

Hi,

To get information about possible properties and children nodes , you need to look for CND files 

example - https://docs.jboss.org/author/display/MODE50/Compact%20Node%20Type%20(CND)%20files.html

 

You can simple look for cnd file in CRXDE e.g. /libs/cq/commons/nodetypes/core.cnd

2 replies

SantoshSai
Community Advisor
Community Advisor
June 12, 2022

Hi @jayv25585659 

nt:folder: This node type represents a plain file system folder (it can have nt:folder and nt:file children and only a few restricted meta data properties) // so quite restricted in terms of properties and nodes.

AEM has restrictions on what node can go under other nodes -Please check if this helps - https://developer.adobe.com/experience-manager/reference-materials/spec/jcr/2.0/3_Repository_Model.html#3.7.4.2%20Default%20Primary%20Node%20Type. However, I believe A nt:unstructured node cannot be created under the type nt:folder, but possible to create under sling:folder. Please refer similar thread here: 

  1. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/nt-unstructured-is-not-allowed-under-nt-folder-error/td-p/369191 
  2. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/structre-of-aem-components/m-p/197190

Hope that helps!

Regards,

Santosh

Santosh Sai
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
June 12, 2022

Hi,

To get information about possible properties and children nodes , you need to look for CND files 

example - https://docs.jboss.org/author/display/MODE50/Compact%20Node%20Type%20(CND)%20files.html

 

You can simple look for cnd file in CRXDE e.g. /libs/cq/commons/nodetypes/core.cnd

Arun Patidar