Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

HTML Library Manager - Allowed client libs path

Akash_Ramchanda
Level 1
Level 1

Hi All,

I have a doubt on 'allowed client libs path' configuration of HTML library manager available in OSGI configs. By default this configuration supports few values like /apps, /etc, /libs. I understand that any client libs that i wish to add should be added only under these paths.

I have been playing around with this configuration and tried couple of scenario's.

1. I added /content in this configuration and assumed that i can now add clientlibs under /content path as well. However, the client libs are not loading in my page if i move any clientlibs from /apps to /content path.

2. I removed /apps from this configuration and assumed that any clientlibs available under /apps will stop supporting. This scenario worked fine for me and clientlib stopped working as expected.

Any idea, what am i doing wrong to support client libs under /content path. It might sound little weird, but my intention here is to allow uploading of  JS and CSS files in dam.

I am using AEM 6.4.

4 Replies
Arun_Patidar
Community Advisor
Community Advisor

Hi,

did you try to create clientLibs inside dam /content/dam?

For me its working

Screenshot 2019-01-02 at 7.56.27 PM.png

Akash_Ramchanda
Level 1
Level 1

I have just moved one of the working clientlib from /apps folder to /content/dam. The client lib stopped loading in the page.

Does the workflow.js that you shared have a primary type as cq:ClientLibraryFolder? Or is it just a file?

Which version are you working on?

Arun_Patidar
Community Advisor
Community Advisor

Hi,

workflow.js is a file but for showing you I loaded with debugClientLibs=true query parameter.

you can rather create main clientlibs inside /libs/ and and embed other /content/ clientlibs into /libs/ clientlibs. It should work. I tired like that.

rampai
Level 5
Level 5

It is a security risk and not something that's recommended.

Check this. Can we store clientlibs( css and js) in dam.

Also won't creating something in /libs get overridden when installing a service pack or going for an upgrade?