AEM 6.2 Component Specific ClientLibrary | Community
Skip to main content
July 28, 2017
Solved

AEM 6.2 Component Specific ClientLibrary

  • July 28, 2017
  • 2 replies
  • 2073 views

Hi Team,

While going through the we retail reference site , I noticed for each component they have created separate clienlibaries like below-

<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"   jcr:primaryType="cq:ClientLibraryFolder"   categories="[we-retail.components.base,we-retail.components.articles-list]"/>

aem-sample-we-retail/.content.xml at master · Adobe-Marketing-Cloud/aem-sample-we-retail · GitHub

Categories we have we-retail.components.base,we-retail.components.articles-list.

So what is the use of we-retail.components.articles-list. in this case.

Even if we specify only we-retail.components.base it works the same way.

Also what is the benefit of creating a separate client library in each component folder rather we could create them in etc/design/site/css or js files?

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 Techaspect_Solu

Hi ankur,

The main reason for using Component Specific ClientLibrary is fast accessibility to a component if there are any changes to be done.

User can embed all the individual client libs under /etc/designs/site, So that we can prioritize the order of client libs while loading.

If user creates all the clientlibs at one place and there are some minor changes has to be done, user need to go through all the clientlibs and find out which file has to be modified.

Using Component Specific ClientLibrary is kind of improvement. Moreover both are having same functionalities which are implemented in different way.

Thanks,

Techaspect Solutions.

2 replies

Techaspect_Solu
Techaspect_SoluAccepted solution
July 28, 2017

Hi ankur,

The main reason for using Component Specific ClientLibrary is fast accessibility to a component if there are any changes to be done.

User can embed all the individual client libs under /etc/designs/site, So that we can prioritize the order of client libs while loading.

If user creates all the clientlibs at one place and there are some minor changes has to be done, user need to go through all the clientlibs and find out which file has to be modified.

Using Component Specific ClientLibrary is kind of improvement. Moreover both are having same functionalities which are implemented in different way.

Thanks,

Techaspect Solutions.

July 28, 2017

Hi,

So apart from fast accessibility there is no benefit is it?

One more question I asked above what is the use of we-retail.components.articles-list. in this case.

Regards