Policy of a component inside a component | Community
Skip to main content
Level 3
March 24, 2022
Solved

Policy of a component inside a component

  • March 24, 2022
  • 2 replies
  • 878 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by LyonMartin

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

2 replies

LyonMartinAuthorAccepted solution
Level 3
March 24, 2022

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

November 30, 2023

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