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

Fill field lastmod on a per url basis ? #323

Closed Yeye-Zfx closed 7 months ago

Yeye-Zfx commented 7 months ago

Hi,

Thanks for the bundle, it's great. For dynamic pages, I haven't found how to fill in the field lastmod for each url. Is it possible at all ?

yann-eugone commented 7 months ago

Hi, thanks for the kind words.

The lastmod is part of the UrlConcrete constructor, so when you create a new one in your listener, you can set it.

Yeye-Zfx commented 7 months ago

Thank you for your answer.

I can't believe I missed that ! Indeed, the constructor of UrlConcrete has everything needed !