Context aware configuration | Community
Skip to main content
Level 2
August 29, 2024
Solved

Context aware configuration

  • August 29, 2024
  • 1 reply
  • 613 views

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.
Best answer by h_kataria

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
August 29, 2024

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.