Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Component Policy getting reset while doing authoring changes

Avatar

Level 2

We have text component (using RTE) for which we have defined content policies(Features, Special Characters, Paragraph etc.)
Whenever we are doing any authoring changes in Page using a Template mapped with this RTE content policy.
The RTE Content policy is getting reset and whatever changes we are doing are not persisting.

 

Could you please guide what can be the issue.

5 Replies

Avatar

Community Advisor

I have tried to replicate the issue on AEM 6.5.9 with we.retail text component but after authoring also RTE is able to retain it's component policy.

 

Did you check persisted policy details in CRXDE something like /conf/we-retail/settings/wcm/policies/weretail/components/content/text/policy_1648910279238?

 

Please let me know AEM version. Could you please check the behavior with we.retail text component.

Avatar

Level 2

This is happening in AEM v6.5 Service Pack 6.5.6-1.0. I tried with We retail text component, there the issue is not coming.

Avatar

Community Advisor

Have you written any listener that performs any specific operation after edit?

Avatar

Community Advisor

You would need to push this through the code. When creating a policy and assigning it by default to a component, there are 2 things which needs to be done:

1. Creation of policy in policy.xml file.

2. Addition of the policy to the component by default in the policy.xml of the template in which you need this.

CRX path of the same:  /conf/<project-name>/settings/wcm/<template>/policy