How to define policy for nested container component
I need to understand with editable templated how can we define the policy for a component that has a nested parsys and this component can be put on a page multiple times like If i have a component called testComponent it has a container in template using parsys:
<div data-sly-resource="${ 'blockParsys' @ resourceType='wcm/foundation/components/parsys'}" ></div> Then is component is put on a page multiple times. it will generate content structure like this:
- my-page
- jcr:content
- root
- my-component ( resourceType: apps/myProject/components/testComponent)
- my-component_xxxxxxxxx ( resourceType:apps/myProject/components/testComponent)
- root
- jcr:content
The policy could be set for the first component dragged but does not remain for the following components. Can someone please help me with a sample component that have a parsys with policy set and could be dragged on the page multiple times.
