There is a problem with the component policy. The policy for the image component is not being applied correctly.
.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @VarunKanchi, You need to connect your wcm/policies with the template policies.
You can check the following example:
/conf/aem-demo/settings/wcm/templates/[template]/policies/.content.xml
<aem-demo jcr:primaryType="nt:unstructured">
<components jcr:primaryType="nt:unstructured">
<image jcr:primaryType="nt:unstructured"
<!-- Your Policy here -->
cq:policy="aem-demo/components/content/image/v1/image/policy"
sling:resourceType="wcm/core/components/policies/mapping"/>
</components>
</aem-demo>
Hi @VarunKanchi, You need to connect your wcm/policies with the template policies.
You can check the following example:
/conf/aem-demo/settings/wcm/templates/[template]/policies/.content.xml
<aem-demo jcr:primaryType="nt:unstructured">
<components jcr:primaryType="nt:unstructured">
<image jcr:primaryType="nt:unstructured"
<!-- Your Policy here -->
cq:policy="aem-demo/components/content/image/v1/image/policy"
sling:resourceType="wcm/core/components/policies/mapping"/>
</components>
</aem-demo>
From your screenshot I can see that you have created a image policy named Content Image. All you need to do is just map it with the image component.
Follow the path and pattern in this screenshot where I am defining the policy.
and after it I will map it to different types of templates
This is the mapping on home page template
Views
Likes
Replies
Views
Likes
Replies