seo-bundle icon indicating copy to clipboard operation
seo-bundle copied to clipboard

[Sitemap] Provide default last modification date guesser

Open wouterj opened this issue 9 years ago • 7 comments

I think this should be introduced by calling a custom method or the like (maybe PHPCR can give us the last mod date already?).

Or maybe make it more generic by having a getSitemapData() method. This method will return an array with sitemap values, which we will set on the UrlInformation.

wouterj avatar May 25 '16 13:05 wouterj

@dantleech can you give us some feedback if a node has such information, and maybe how to get it through phpcr-odm?

ElectricMaxxx avatar May 25 '16 14:05 ElectricMaxxx

http://doctrine-orm.readthedocs.io/projects/doctrine-phpcr-odm/en/latest/cookbook/last-modified.html

dbu avatar May 25 '16 14:05 dbu

You whant it on the 1.3, that we still have to release. Or wait for 2.0?

ElectricMaxxx avatar May 25 '16 17:05 ElectricMaxxx

if somebody has time to work on it, it would be nice in 1.3. its no BC break, just an additional guesser.

dbu avatar May 26 '16 06:05 dbu

I think i can do it after my REST Talk next week. Now the waiting for the release makes Sense, that is a sweet new feature.

ElectricMaxxx avatar May 26 '16 06:05 ElectricMaxxx

But one question: That information could also go into the header for caching or the FosHttCacheBundle could use that information, right?

ElectricMaxxx avatar May 26 '16 07:05 ElectricMaxxx

in FOSHttpCache, we have no doctrine integrations. we don't have a guesser architecture there. the problem doing that would be to know which object to use. see also https://github.com/FriendsOfSymfony/FOSHttpCacheBundle/issues/184 for a lot of discussion about content object integration.

dbu avatar May 27 '16 08:05 dbu