Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mahedi_Sabuj
Mahedi_SabujAccepted solution
Community Advisor
Nov 8, 2023 8:39 AM UTC

AEM Core Navigation Component implemented same requirement.

value="${not empty cqDesign.navigationRoot ? cqDesign.navigationRoot : ''}"

https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wcm/components/navigation/v2/navigation/_cq_dialog/.content.xml#L58 

Mahedi Sabuj

4 replies

Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
Nov 8, 2023 8:39 AM UTC

AEM Core Navigation Component implemented same requirement.

value="${not empty cqDesign.navigationRoot ? cqDesign.navigationRoot : ''}"

https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wcm/components/navigation/v2/navigation/_cq_dialog/.content.xml#L58 

Translate
Mahedi Sabuj
BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Nov 9, 2023 3:16 AM UTC

I concur, follow the patterns of the Adobe Core Component's Project, and without over-engineering, it will be handled as expected. 

Translate
aanchal-sikka
Community Advisor
Community Advisor
Nov 8, 2023 9:06 AM UTC

Please refer to this blog: https://kiransg.com/2023/11/05/accessing-component-policies-in-aem-at-the-component-dialog-level/

 

It has step-by-step details

Translate
Aanchal Sikka
kautuk_sahni
Level 9
Nov 9, 2023 10:27 AM UTC

@ronnie09 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni