Expand my Community achievements bar.

SOLVED

slingSuperResourcetype doubt in the below article

Avatar

Level 9

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10
1 Reply

Avatar

Correct answer by
Level 10