But I never really found out why? I tried searching the net but I didn't find the answer.
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
hi @jayv25585659 ,
sling:resourceSuperType: It is used to achieve inheritance in cq. When set, it inherits the specified component to this component. The resource type is meant to point to rendering/processing scripts, editing dialogs, etc.
sling:resourceType: It is a path, which locates the script to be used for rendering the content. Path used can be absolute or relative.
This sling:resourceSuperType properties are also considered when trying to find a script. The advantage of resource super types is that they may form a hierarchy of resources where the default resource type sling/servlet/default (used by the default servlets) is effectively the root.
Refer https://sling.apache.org/documentation/the-sling-engine/resources.html
hi @jayv25585659 ,
sling:resourceSuperType: It is used to achieve inheritance in cq. When set, it inherits the specified component to this component. The resource type is meant to point to rendering/processing scripts, editing dialogs, etc.
sling:resourceType: It is a path, which locates the script to be used for rendering the content. Path used can be absolute or relative.
This sling:resourceSuperType properties are also considered when trying to find a script. The advantage of resource super types is that they may form a hierarchy of resources where the default resource type sling/servlet/default (used by the default servlets) is effectively the root.
Refer https://sling.apache.org/documentation/the-sling-engine/resources.html
Hi @jayv25585659
sling:resourceType:
sling:resourceSuperType:
in simple layman's term
sling:resourceType: Locate the resource to be used for rendering.
sling:resourceSuperType: Locate the resource to be inherited, allowing us to override some of the scripts.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies