Categories unique across projects? | Community
Skip to main content
jlpjb
New Participant
March 21, 2019
Solved

Categories unique across projects?

  • March 21, 2019
  • 1 reply
  • 2078 views

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.

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 Gaurav-Behl

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

1 reply

Gaurav-Behl
Gaurav-BehlAccepted solution
New Participant
March 21, 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