How to use/understand AEM Sling Resource Merger, override and Overlay concepts. | Community
Skip to main content
Level 4
January 17, 2017
Solved

How to use/understand AEM Sling Resource Merger, override and Overlay concepts.

  • January 17, 2017
  • 5 replies
  • 5070 views

Am trying to understand the AEM Sling Resource Merger concept. As per the Adobe docs examples Override (Configuring your Page Properties), Overlay (Customizing the Consoles (touch-optimized UI)), am getting confused how to use this, can any one explain with simple component to understand it in more better way.

Kk

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 Ratna_Kumar

Hi,

Sling resource merger is introduced in AEM 6.x and basically same as Override.

//Overlay:

  • It is based on saerch paths(/libs + /apps)
  • Need to copy the whole subtree
  • All the properties are duplicated
  • When upgrades are done to the /libs folder, these changes have to be manually recreated under /apps.

//Sling Resource Merger/Override:

  • Sling resource merger is based on Resource Type Hierarchy.
  • It extends within an almost empty subtree
  • Only required properties are overlaid.
  • As properties are not copied, only the structure, upgrades are automatically reflected in /apps

//See this Adobe docs for more info: https://docs.adobe.com/docs/en/aem/6-2/develop/platform/sling-resource-merger.html

Hope this helps!!

Thanks,
Ratna Kumar.

5 replies

smacdonald2008
Level 10
January 17, 2017

All overlay refers to is to take an existing component from under /libs and drop to /apps/<YOUR PROJECT>/components. Then change the Title property (maybe other propertues too) so its a unique name. Then modify the application logic to meet your needs. Never directly change components under /libs. Hope this helps. 

KkkrishAuthor
Level 4
January 17, 2017

smacdonald2008 wrote...

All overlay refers to is to take an existing component from under /libs and drop to /apps/<YOUR PROJECT>/components. Then change the Title property (maybe other propertues too) so its a unique name. Then modify the application logic to meet your needs. Never directly change components under /libs. Hope this helps. 

 

Thanks Scott,

Then what is the concept of AEM Sling Resource Merger how to use it? what is the /mnt/override and /mnt/overlay i see the touch UI url for Asset editor like below where the "/mnt/overlay/" is having any specific actions to do in the url .?

"http://localhost:4502/mnt/overlay/dam/gui/content/assets/metadataeditor.html?item=%2Fcontent%2Fdam%2Fprojects%2Foutdoors%2Fcover&_charset_=utf8"

Thanks in advance

Kk

Ratna_Kumar
Ratna_KumarAccepted solution
Level 10
January 17, 2017

Hi,

Sling resource merger is introduced in AEM 6.x and basically same as Override.

//Overlay:

  • It is based on saerch paths(/libs + /apps)
  • Need to copy the whole subtree
  • All the properties are duplicated
  • When upgrades are done to the /libs folder, these changes have to be manually recreated under /apps.

//Sling Resource Merger/Override:

  • Sling resource merger is based on Resource Type Hierarchy.
  • It extends within an almost empty subtree
  • Only required properties are overlaid.
  • As properties are not copied, only the structure, upgrades are automatically reflected in /apps

//See this Adobe docs for more info: https://docs.adobe.com/docs/en/aem/6-2/develop/platform/sling-resource-merger.html

Hope this helps!!

Thanks,
Ratna Kumar.

KkkrishAuthor
Level 4
January 17, 2017

Thanks Ratna,

I have tried to use this OVERLAY concept for the default form DAM Asset Editor, but it doesn't work as expected. Did i miss something.?

Have created another ticket for the same.

~Kk

kautuk_sahni
Community Manager
Community Manager
January 18, 2017

Kkkrish wrote...

Thanks Ratna,

I have tried to use this OVERLAY concept for the default form DAM Asset Editor, but it doesn't work as expected. Did i miss something.?

Have created another ticket for the same.

~Kk

 

I am closing this thread as the primary questions got answered by Ratna. For other question created, experts will try to answer on new thread.

~kautuk

Kautuk Sahni