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

SOLVED

Editable Template policy is not getting updated with mode=merge or mode=update or mode=replace or without any mode

Avatar

Level 2

My current version is AEM 6.5.12

 

I need to delete flex_grid from xxx template policies.

aayushagrawal_2-1669276344975.png

 

I have tried with all the options in filter.xml but my changes are not reflected in crx/de post deployment.

Note

1. After I remove flex_grid node from codebase and build the package then flex_grid node is removed in the build package.

2. If I delete section-fw manually and reinstall the package then flex_grid will be removed in crx/de.

 

Awaiting for your suggestions!! @arunpatidar 

 

Thanks in advance.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

can you try removing the merge mode.

 

Make sure you are checking at right place. policies are stores inside /conf/<path>/settings/wcm/policies and templates uses inside template e.g.

/conf/<path>//settings/wcm/templates/my-template/policies/

 

can you try to add this two path in the filter.xml without any mode.

 

View solution in original post

11 Replies

Avatar

Level 4

I have the same issue. When using mode="merge" or mode="update" you need to manually remove the old template on the crx/de before deployment.

Avatar

Level 4

hi @bhoang , yes correct as none of these mode i.e. merge or update delete the content as mentioned by Jackrabbit filevault. Only mode which deletes the content is replace.

Avatar

Level 2

replace is also not working for me. i.e I have mentioned in the subject that none of the mode is working for me. I am not able to delete flex_grid node. 

Avatar

Level 4

Hi @aayushagrawal can you please share your filter.xml file

And have you tried with complete path of template or base folder ?

Avatar

Level 4

 

 

filter elements

The filter elements are independent of each other and define include and exclude patters for subtrees. The root of a subtree is defined by the root attribute, which must be an absolute path.

The filter element can have an optional mode attribute which specified the import mode used when importing content.

Available Filter Modes

replace -

Existing content will be replaced completely by the imported content, i.e. is overridden or deleted.

merge -

Existing content is not modified, i.e. only new content is added and none is deleted or modified.

update -

Existing content is updated, new content is added and none is deleted

Avatar

Community Advisor

Hi,

You need to delete  flex_grid node from codebase and build the package and deploy using replace filter.

make sure the version of install package is higher or snapshot.

 

Avatar

Level 2

Thanks @arunpatidar for your input. Higher version of package was missing before however increasing the package version also didn't work. If I add anything in the policies it will be reflected but in case of removing anything from the policies doesn't reflect. 

 

Any other suggestion?

 

Regards,
Aayush

Avatar

Correct answer by
Community Advisor

can you try removing the merge mode.

 

Make sure you are checking at right place. policies are stores inside /conf/<path>/settings/wcm/policies and templates uses inside template e.g.

/conf/<path>//settings/wcm/templates/my-template/policies/

 

can you try to add this two path in the filter.xml without any mode.