How to overlay a client library in AEM? | Community
Skip to main content
HariharanKarthi
December 11, 2017
Solved

How to overlay a client library in AEM?

  • December 11, 2017
  • 3 replies
  • 2975 views

As per Adobe suggestion to resolve a issue in my browse path component, I need to overlay below client library file in AEM.

/etc/clientlibs/granite/coralui2/optional/rte/js/components/rte/ui/dialogs/LinkBaseDialog.js

Currently I have created a client library with same category name under /apps and referred all the files in the original(/etc) client library with js.txt file(/apps).

By doing this both the overlay-ed and the original client library are getting loaded. Need to know how to properly overlay a client library.

Can anyone help me on this.

Thanks in advance!

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

If you have js.txt at both the places, it will include clientlibs twice.

You can remove js.txt from path where you have overlayed clientlib

3 replies

edubey
edubeyAccepted solution
Level 10
December 11, 2017

If you have js.txt at both the places, it will include clientlibs twice.

You can remove js.txt from path where you have overlayed clientlib

HariharanKarthi
December 11, 2017

It is not recommended to modify any library files in AEM. So removing the js.txt file from source(couralUI2 Library) might cause issue during upgrade.

edubey
Level 10
December 11, 2017

you don't have to remove it from the source location

you have to remove it from the place where you have your overlayed clientlib under /apps (destination)