Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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 Accepted Solution

Avatar

Correct answer by
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

View solution in original post

2 Replies

Avatar

Correct answer by
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