How to overlay a client library in AEM? | Community
Skip to main content
HariharanKarthi
New Participant
Dec 11, 2017 10:46 AM UTC
Solved

How to overlay a client library in AEM?

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.
edubey
edubeyAccepted solution
Level 10
Dec 11, 2017 12:35 PM UTC

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
Level 10
Dec 11, 2017 2:34 PM UTC

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)

Translate
HariharanKarthi
New Participant
Dec 11, 2017 2:30 PM UTC

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.

Translate
edubey
edubeyAccepted solution
Level 10
Dec 11, 2017 12:35 PM UTC

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

Translate