Skip to main content
Level 2
Aug 29, 2024 1:32 PM UTC
Solved

Context aware configuration

I want to use context aware configuration in my aem project. Is there anyway without defining  @10922553:configRef property at root level, can we refer configuration at /content level or /content/data level?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
h_kataria
h_katariaAccepted solution
Community Advisor
Aug 29, 2024 2:07 PM UTC

Short answer is yes, you can define it at any level. Essentially you can even have different configuration for different hierarchies. You just have to point the sling:configRef to the right location (where your actual CA configs will be available, generally located under /conf). 
You may also want to check https://wcm.io/caconfig/ which doesn't come OOB with AEM but provides a good User interface to manage your context aware configurations.
Hope this helps.

1 reply

h_kataria
Community Advisor
h_katariaCommunity AdvisorAccepted solution
Community Advisor
Aug 29, 2024 2:07 PM UTC

Short answer is yes, you can define it at any level. Essentially you can even have different configuration for different hierarchies. You just have to point the sling:configRef to the right location (where your actual CA configs will be available, generally located under /conf). 
You may also want to check https://wcm.io/caconfig/ which doesn't come OOB with AEM but provides a good User interface to manage your context aware configurations.
Hope this helps.

Translate