what JCR node type combinations are possible? | Community
Skip to main content
jayv25585659
Level 8
Jun 12, 2022 2:11 AM UTC
Solved

what JCR node type combinations are possible?

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 12, 2022 11:08 AM UTC

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

2 replies

arunpatidar
arunpatidarAccepted solution
New Participant
Jun 12, 2022 11:08 AM UTC

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

Translate
Arun Patidar
SantoshSai
New Participant
Jun 12, 2022 3:36 AM UTC

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

Translate
Santosh Sai