slingSuperResourcetype doubt in the below article | Community
Skip to main content
New Participant
October 16, 2015
Solved

slingSuperResourcetype doubt in the below article

  • October 16, 2015
  • 1 reply
  • 625 views

Hi All,

One of the article mentions this, but I am not getting what exactly it means. Any thoughts on this will be helpful.

slingSuperResourcetype: It is used to inherit / extend components from foundation or other components. There is a good example to understand it completely. Consider components a , b, c, x, y with the below mentioned properties for each of them :

  • /
    • a
    • b
      • sling:resourceSuperType = a
    • c
      • sling:resourceSuperType = b
    • x
      • sling:resourceType = c
    • y
      • sling:resourceType = c
      • sling:resourceSuperType = a

The type hierarchy of

  • /x is [ c, b, a, <default>] while for
  • /y the hierarchy is [ c, a, <default>]

because /y has the sling:resourceSuperType property whereas /x does not and therefore its supertype is taken from its resource type.

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