Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM 6.5 DataLayerConfig, sling:configs not found

Avatar

Level 2

Hello,


I am trying to follow the following documentation

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/data-lay...

But I can't find the path indicated to perform the configuration /conf/<mySite>/sling:configs/ I only have the route /conf/<mySite>

How can I build sling:configs?

regards

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi @juancarlos2022

sling:configs are related to Sling Context Aware Configurations. These configs allows to maintain your configurations which are specific to contexts.

e.g. If your company has global presence, you may have Social Media links specific to each country. To manage such links you can use Sling Context aware configurations.

More details on how to configure and use it, can be found here:

https://sling.apache.org/documentation/bundles/context-aware-configuration/context-aware-configurati...

https://wcm.io/caconfig/

Thanks

Swapnil

View solution in original post

3 Replies

Avatar

Correct answer by
Level 6

Hi @juancarlos2022

sling:configs are related to Sling Context Aware Configurations. These configs allows to maintain your configurations which are specific to contexts.

e.g. If your company has global presence, you may have Social Media links specific to each country. To manage such links you can use Sling Context aware configurations.

More details on how to configure and use it, can be found here:

https://sling.apache.org/documentation/bundles/context-aware-configuration/context-aware-configurati...

https://wcm.io/caconfig/

Thanks

Swapnil

Avatar

Community Advisor

Hi @juancarlos2022

Can you let me know which archetype you are using to create the project? The latest archetype should be creating the structure for you. If not, you can still create the structure mentioned in the documentation you are referring.

Hope this helps!

Thanks,

Kiran Vedantam

Avatar

Community Advisor

Hi @juancarlos2022

Context-aware configurations are a feature of Sling. They are configurations that are related to a content resource or a resource tree and are leveraged by the Core Components to allow site-wide configurations.

A number of Core Components features leverage context-aware configurations. All such configurations are located under the following node:

  • /conf/<my-site>/sling:configs/<my-configuration>

Ref : https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/context-...

Sling Context-Aware Configuration in AEM - Deep Dive


Context Aware Configuration in AEM

Hope this will help you

Thanks