Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

Policy of a component inside a component

Avatar

Level 4

Hi, is there a way to access the policy of a certain component that has been called by component using data-sly-resource?
Let's say I have a parent component and calls the customcomponent using data-sly-resource:

 

<sly data-sly-resource="${ 'share' @ resourceType='core/wcm/components/custom/customcomponent'}"></sly>

 

 Use case is that Icon strings are already implemented in policy of customcomponent and I added it to the Parent component. Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 4

After debugging, it gets policy from a different references. 
Already fixed the issue.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

After debugging, it gets policy from a different references. 
Already fixed the issue.

Avatar

Level 1

Can you please provide reference from where policy are getting referenced for your use case. I am also having a similar use case.