Hi all,
I understand Override is inheriting and Overlay is copying component in to /apps and changing code.
When to use overlay vs override?
What are their relative advantages/disadvantages?
Thanks,
Rama.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Overlaying a Component:
In AEM the default functionality is available in "/libs". Overlaying means copying the functionality from "/libs" to "/apps" at exact same path. You can do the desired changes in newly copied functionality under "/apps"
AEM uses search path to find a resource. As per the default OSGI preferences(set in Apache Sling Resource Resolver Configuration), it first searches under /apps and then /libs, so your newly copied component will get priority.
Extend/Override a Component:
Establish a custom component by creating all necessary nodes and configuring the value of the "sling:resourceSuperType" property as "/libs/foundation/components/image." This approach allows you to inherit all the features of the image component, ensuring that even after an upgrade, you retain the functionalities of the original image component.
https://www.aem-blog.com/post/override-and-overlay
When to use Overlay vs. Override:
Overide:
Overlay:
Overlaying a Component:
In AEM the default functionality is available in "/libs". Overlaying means copying the functionality from "/libs" to "/apps" at exact same path. You can do the desired changes in newly copied functionality under "/apps"
AEM uses search path to find a resource. As per the default OSGI preferences(set in Apache Sling Resource Resolver Configuration), it first searches under /apps and then /libs, so your newly copied component will get priority.
Extend/Override a Component:
Establish a custom component by creating all necessary nodes and configuring the value of the "sling:resourceSuperType" property as "/libs/foundation/components/image." This approach allows you to inherit all the features of the image component, ensuring that even after an upgrade, you retain the functionalities of the original image component.
https://www.aem-blog.com/post/override-and-overlay
When to use Overlay vs. Override:
Overide:
Overlay:
Views
Likes
Replies