Can anyone give an efficient approach for inheritance in clientlibs?
Scenario is one clientlibs are having global level css and js , another can extend the global clientlibs and override the existing one and can add new CSS and JS based on the requirement.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
here is a good explanation[1]
An example of using clientlibs[2]
Documentation on embed and dependencies
Regards,
Opkar
[2] http://blogs.adobe.com/experiencedelivers/experience-management/clientlibs-explained-example/
[3]https://docs.adobe.com/docs/en/cq/5-6-1/developing/clientlibs.html
Views
Replies
Total Likes
Hi,
You can define all you global CSS in a client lib [A] and you can use this as a dependencies for all other css files defined in clientlib [B]. If you want to override css classes defined in global [A] to your [B] you can do it..
These post talks about it:
Views
Replies
Total Likes
for your use case, you can embed the global clientlib category and override the required classes and js in your clientlibs
Views
Replies
Total Likes
Hi,
here is a good explanation[1]
An example of using clientlibs[2]
Documentation on embed and dependencies
Regards,
Opkar
[2] http://blogs.adobe.com/experiencedelivers/experience-management/clientlibs-explained-example/
[3]https://docs.adobe.com/docs/en/cq/5-6-1/developing/clientlibs.html
Views
Replies
Total Likes
Views
Likes
Replies