prestaconcept/PrestaSitemapBundle

Cancel <lastmod> field

enessaatess opened this issue · 1 comments

Hello, I am using PrestaSitemapBundle on my website. When I create a sitemap, the field is also created, but I want to prevent this field from being created. Can you help me with this?

image

image

Thank you for your hard work.

Hello
Unfortunately, it is currently not supported by this bundle.
But you could change the service class (generator or dumper, depending on how you are doing it) in your app, and replace it with your own implementation that will use preg_replace for removing all <lastmod> tags in generated XML.