AEM 6.5 DataLayerConfig, sling:configs not found | Community
Skip to main content
Level 2
Dec 2, 2022 12:23 PM UTC
Solved

AEM 6.5 DataLayerConfig, sling:configs not found

Hello,


I am trying to follow the following documentation

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/data-layer/overview.html?lang=en

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
salamswapnilAccepted solution
New Participant
Dec 2, 2022 12:41 PM UTC

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-configuration.html

https://wcm.io/caconfig/

Thanks

Swapnil

3 replies

New Participant
Dec 3, 2022 5:30 PM UTC

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-aware-configs.html?lang=en

Sling Context-Aware Configuration in AEM - Deep Dive


Context Aware Configuration in AEM

Hope this will help you

Thanks

Translate
Kiran_Vedantam
New Participant
Dec 2, 2022 3:54 PM UTC

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

Translate
salamswapnilAccepted solution
New Participant
Dec 2, 2022 12:41 PM UTC

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-configuration.html

https://wcm.io/caconfig/

Thanks

Swapnil

Translate