Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support a working XML sitemap configuration for tx_seo #421

Open
biedert opened this issue Jun 22, 2023 · 5 comments
Open

Comments

@biedert
Copy link

biedert commented Jun 22, 2023

Since it would be nice to have the detail view of all events in the XML sitemap of a page, an example configuration for tx_seo would be appreciated. I.E. in the extension manual or in an optional TS-Template.

If found the following issue on stackoverflow, but it doesn't work correctly, because the timestamp parameter is missing (or simply set to 0)

https://stackoverflow.com/questions/71444533/sitemap-for-events2

@sfroemkenjw
Copy link
Contributor

Hello @biedert

what do you mean with "doesn't work correctly"? I remember that post as I have tested and answered it.
Setting the timestamp to 0 activates an internal fallback process of events2. In that case events2 tries to find the next date, if not found it tries to find the last possible date, if that is not found, too, it displays the event start date of the event record. And yes, setting timestamp to 0 will result in 01011970_0000 in URI.

Stefan

@biedert
Copy link
Author

biedert commented Jun 28, 2023

Hi @sfroemkenjw !

Well, I think I would expect every date of an event to have exactly one URL. Furthermore, an URL with a 01011970_0000 in it is not an URL I would like google to index.
Maybe a RecordsXmlSitemapDataProvider would help to find the first Date (timestamp) of an event?

Best, Patrick

@SvenJuergens
Copy link
Contributor

Hi @biedert and @sfroemkenjw
I quickly built a very rudimentary SitemapDataProvider here, also only creates a list of events from a list of PageIds, no categories, no organisers etc. But maybe helpful for one or the other.
https://gist.github.com/SvenJuergens/44d129995afbb475eed418d8fce81d79

@biedert
Copy link
Author

biedert commented Aug 8, 2024

Thanks for sharing, @SvenJuergens !

@SvenJuergens
Copy link
Contributor

Gladly :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants