Expand my Community achievements bar.

Page Template OverLapping with old

Avatar

Level 3

Recently I update my Page Template. I removed a Component and added another component. In Local It's working fine. But in the AEM Cloud It's showing me old and new component both together.

As I found out that it's overlapping each other

 

Page Template Structure

ashikg3_0-1692178744792.png

 

 

ashikg3_0-1692177609254.png

So before experiencefragment that is old component over there. We don't have CRXDE in AEM Cloud to remove that.

 

In the ui.content filter.xml I added this code

<filter root="/conf/[site-name]/settings/wcm/templates/product-page-template" mode="replace"/>
But still not working. Anyone please recommend to me how I can remove that?
Thanks
7 Replies

Avatar

Community Advisor

Hi @ashikg3 

Along with your component update can you also update the cq:lastModified property. With your new filter ideally the code should have been replaced and in this case new last modified date should be available while you navigate through the sites console. This will ensure that you filter is working fine and then you can check with adobe for any possibly caching issues at the server level.

 

If the lastModified is also not getting updated then it could another include or exclude filter that overrides this one with a different mode.

 

Hope this helps to start your troubleshooting

Avatar

Level 3

Hey Thank You. I just troubleshoot LastModified not showing. It's say update one month ago

I just found another code in filter.xml

<filter root="/conf/[site-name]" mode="update"/>
It's coming 1st then 
<filter root="/conf/[site-name]/settings/wcm/templates/product-page-template" mode="replace"/> this code coming in
should i replace them like make this code 1st then other code?

Avatar

Community Advisor

Hi @ashikg3

You can try to filter out the parent-page-template from the /conf/[site-name] filter.

<filter root="/conf/[site-name]" mode="update">
  <exclude pattern="/conf/[site-name]/settings/wcm/templates/product-page-template" />
</filter>
<filter root="/conf/[site-name]/settings/wcm/templates/product-page-template" mode="replace"/>

 

Avatar

Level 3

Thank You Sabuj Brother. Let me try and see if it's working.

Thanks

Avatar

Community Advisor

Hi @ashikg3 

The filter rule for a specific folder should be before the general rule.

In your case have the specific rule first 

<filter root="/conf/[site-name]/settings/wcm/templates/product-page-template" mode="replace"/>

then you can have the general rule with exclude pattern

 

Please refer the below link also 

https://stackoverflow.com/questions/68954378/is-it-possible-to-deploy-one-child-folder-alone-with-me...