3 Replies Latest reply: Apr 18, 2012 5:49 PM by aklimets RSS

    what would be the difference between sling:folder and nt:folder?

    ernestlv Community Member

      what would be the difference between sling:folder and nt:folder?

        • 1. Re: what would be the difference between sling:folder and nt:folder?
          nicolas peltier Adobe Employee

          Hi,

           

          you should look into node type administration for the full list of differences.

           

          Quickly said,

          - you are free to add whatever property you want in a sling:folder (not in a nt:folder)

          - you are free to add whatever nodetype you want in a sling:folder (not in a nt:folder)

          • 2. Re: what would be the difference between sling:folder and nt:folder?
            MatheusOliveira Community Member

            See,

             

               As Nicolas said, there are some things that you can do only in a sling:folder type of node.

             

               The "nt" means "Node Type", and a "node type: folder" is just a empty node that can be referenced as a organizational structure file folder. The "sling" prefix means that this one special folder belong to the type "Sling", in other words, that folder type node is built in the sling Framework structure and is constructed with some setting already, which I do not know to tell you. Take a look at "/libs/sling/nodetypes/sling.cnd" on you CRXDE Lite or CRXDE.

             

            (I may be wrong about some details, eveything here is what I believe myself after some research and experience)

             


            • 3. Re: what would be the difference between sling:folder and nt:folder?
              aklimets Adobe Employee

              nt:folder represents a plain file system folder (it can have nt:folder and nt:file children and only a few restricted meta data properties).

               

              sling:folder is basically nt:folder + nt:unstructured in one, i.e. it can be used inside other nt:folders, but it comes with residual (arbitrary, wildcard) properties and child nodes.