Sling:folder Vs nt:folder | Community
Skip to main content
Nandujee
New Participant
October 16, 2015
Solved

Sling:folder Vs nt:folder

  • October 16, 2015
  • 2 replies
  • 3666 views

Hello there,

From this URL http://localhost:4502/crx/explorer/nodetypes/index.jsp

Child Node definition of nt:folder says nt:folder  shall contain nt:folder as child node.

Child Node definition of sling:folder says sling:folder shall contain sling:folder or nt:folder as child node

If it so. I can see sling:folder inside the nt:folder:

Here is the example:/libs/foundation/components/search/i18n

Here root(/) is nt:folder

libs: node type is nt:folder

i18n folder is sling:folder.

Can any one help me to understand this.

Thanks

Nanda

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 Runal_Trivedi

Defining the node of type sling:folder gives you additional capabilities of defining sling characteristics on that node like binding a script, defining a resource type etc that you don't get with nt:folder.

One such example with OOTB components is form action component /libs/foundation/components/account/actions/accountrequest  this node too is of type sling:folder there you can see sling:resourceType defined along with POST script which comes into play in form submit action.

- Runal

2 replies

Runal_Trivedi
Runal_TrivediAccepted solution
New Participant
October 16, 2015

Defining the node of type sling:folder gives you additional capabilities of defining sling characteristics on that node like binding a script, defining a resource type etc that you don't get with nt:folder.

One such example with OOTB components is form action component /libs/foundation/components/account/actions/accountrequest  this node too is of type sling:folder there you can see sling:resourceType defined along with POST script which comes into play in form submit action.

- Runal