Expand my Community achievements bar.

SOLVED

How to overlay a client library in AEM?

Avatar

Level 1

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!

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 1

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.

Avatar

Level 10

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)