prestaconcept / PrestaSitemapBundle

A symfony bundle that provides tools to build a rich application sitemap. The main goals are : simple, no databases, various namespace (eg. google image), respect constraints etc.
MIT License
347 stars 100 forks source link

Cancel <lastmod> field #302

Open enessaatess opened 1 year ago

enessaatess commented 1 year ago

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.

yann-eugone commented 1 year ago

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.