In TYPO3 with the seo extension it is fairly easy to provide google site maps for pages and records: simply use XmlSitemapDataProviders. No problem to use it for tx_news when you only use a few detail pages.
But i can`t figure out how to build the sitemaps when the detail pages are defined in the categories: every news should be displayed on the detail page which is defined in the first news category.
I am able to write my own XmlSitemapDataProvider but that is not enough: the problem is in the XmlSitemapRenderer. He generates the sitemaps (with there individual XmlSitemapDataProviders) depending on the config array:
sitemaps {
pages {}
news1 {}
news2 {}
and so on. My idea is, that there should be an entry for every category with a defined detail page.
How can i accomplish this? Thanks!