Expand my Community achievements bar.

SOLVED

Custom script for AEM inbox notification

Avatar

Level 1

Hi Everyone,

    I have one requirement, whenever user login or lands aem start page in aem 6.5 environment after that aem inbox notification automatically should expand. I have written a custom script but I don't know where to place this since these are all granite and coral related functionalities.

 

Script:

document.addEventListener('DOMContentLoaded', function() {
if (window.location.pathname === '/aem/start.html') {
var aemInboxNotification = document.querySelector('.granite-shell-badge');
if (aemInboxNotification) {
aemInboxNotification.click();
}
}
})

 

 

Can anyone help me on this? Thanks in advance!

jooca_0-1736311056563.png

 

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi @jooca 

 

You can check n/w tab which clientlibs are loading as part of the home screen.

 

coralui3 categories will load by default on the AEM screen from foundation granite clientlibs

You can create your own custom clientlib files (Ex : /apps/project/custom-clientlibs ) in your project and use same category 

 

PRATHYUSHA_VP_0-1736315526639.png

Hope this helps

 

Thanks

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

Hi @jooca 

 

You can check n/w tab which clientlibs are loading as part of the home screen.

 

coralui3 categories will load by default on the AEM screen from foundation granite clientlibs

You can create your own custom clientlib files (Ex : /apps/project/custom-clientlibs ) in your project and use same category 

 

PRATHYUSHA_VP_0-1736315526639.png

Hope this helps

 

Thanks