Expand my Community achievements bar.

SOLVED

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

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

5 Replies

Avatar

Level 10

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. 

Avatar

Level 5

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

Avatar

Correct answer by
Level 10

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.

Avatar

Level 5

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

Avatar

Administrator

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