Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

arunpatidar
Community Advisor
Community Advisor
November 16, 2022

Try with

 <componentB
cq:policy="aemlab/oneweb/components/image/policy_componentA"
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mapping"/>
Translate
Arun Patidar
New Member
November 16, 2022

Thanks for the reply @arunpatidar 

Let me reframe my requirement here. I have defined Styles on Component A Policy and I want to reuse this Component A Styles on Component B in addition to the Component B Specific Styles.

Requirement here is to reuse already defined styles of Component A on Component B and Components B should also have its own policy. 

 

The above solution which you provided will only inherit component A policy on component B.

Translate
arunpatidar
Community Advisor
Community Advisor
November 17, 2022

The policy combination is not supported. you can't refer two policies at the same time.

Translate
Arun Patidar