Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Categories unique across projects?

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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