내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
해결됨

Adding policies to the component in the Header.html in Page Component

Avatar

Level 3

We have a requirement to create header using tabs component.

 

We have added this tab component in Header.html file using below code:

 

<header>

    <sly data-sly-resource="${ @path = header, resourceType = '/apps/abc/components/content/tabs', wcmmode=mode}"></sly>

</header>

 

In the pages, we are not able to add any tab item.

We need to allow only one specific component to be added to the tabs in this scenario.

 

We tried to add policies but its giving PersistenceEsxception: unable to create node at /conf/abc/settings/wcm/policies.

 

Any suggestions on this issue how to fix it?

 

@kautuk_sahni @arunpatidar @aanchal-sikka @EstebanBustamante 

@Raja_Reddy @TarunKumar @Saravanan_Dharmaraj @Jörg_Hoh 

@lukasz-m 

 
1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi @S__k__Agarwal 
Yes, you can add policies to the include component,

Please check snippet here, where tabs component have different policy for parsys, you need to do similar but for header component : https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-how-to-restrict-compon...

 

Arun Patidar

AEM LinksLinkedIn

원본 게시물의 솔루션 보기

2 답변 개

Avatar

Community Advisor

Avatar

정확한 답변 작성자:
Community Advisor

Hi @S__k__Agarwal 
Yes, you can add policies to the include component,

Please check snippet here, where tabs component have different policy for parsys, you need to do similar but for header component : https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-how-to-restrict-compon...

 

Arun Patidar

AEM LinksLinkedIn