Categories unique across projects?

Avatar

Avatar

jlpjb

Avatar

jlpjb

jlpjb

21-03-2019

Do category names for clientlibs need to be unique across all the projects on the same instance?

Say you have multiple sites hosted on the same AEM instance, each with its own apps folder.

apps/foo/text/clientlib

          category cat_text

apps/bar/text/clientlib

          category cat_text

What we found is that  foo page we ended up loading the css for both foo and bar projects.

If is easy enough to make each category unique, but it seems very wrong AEM would assume you'd want to take the styles from different app folders. Is that the how it's meant to work?

I don't seem to see the same issue where the clientlibs are in etc/clientlibs instead of the apps folder.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

21-03-2019

Per my knowledge, this is correct. It must be unique otherwise it would end up pulling all libraries irrespective of its path in /apps or /etc

Answers (0)