Hi,
+ main - responsivegrid
+ my-project
+ components
+ custom component
+ responsivegrid
data-sly-resource="${'responsivegrid' @ resourceType='wcm/foundation/components/responsivegrid'}
Solved! Go to Solution.
Views
Replies
Total Likes
The policy would have to be set for each of the resposivegrid through UI. You can refer to we.retail project to see the policy structure. In the below example, experience-page has 'root' responsivegrid and a responsivegrid inside it and both will have different policies
'root' node has we-retail-structure and 'responsivegrid' node has 'we-retail-default' policy
And these two policies are defined under 'policies' main node
there are two types of policy there, one is for container layout and another is for component.
if you want to add the policy for the entire container then you can follow the step given:
1. open the page in editor
2. select the "page information" icon( second from left)-> select Edit Template option
3. on the next page select the layout container then select the policy icon to select or create a policy and then save it.
if you want to add component specific policy then:
follow the above mentioned point #1 and #2 and on the next page select the policy of the specific component then apply what ever you want.
Now first you need to verify whether the policy is applied correctly or not by following the steps mentioned above:
Some times it also happens like if you have policy as part of the codebase with not the mode= merge in filter.xml then it will overwrite the created policy on every deployment.
You can verify every policy created in the /conf/your-project/settings/wcm/policies at the path.
hope this will help.
Umesh Thakur
The policy would have to be set for each of the resposivegrid through UI. You can refer to we.retail project to see the policy structure. In the below example, experience-page has 'root' responsivegrid and a responsivegrid inside it and both will have different policies
'root' node has we-retail-structure and 'responsivegrid' node has 'we-retail-default' policy
And these two policies are defined under 'policies' main node
Views
Likes
Replies