#86716RecordsXmlSitemapDataProvider not working
Description
For me the RecordsXmlSitemapDataProvider ist not working. See following configuration:
plugin.tx_seo {
config {
xmlSitemap {
sitemaps {
tx_news {
provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
config {
table = tx_news_domain_model_news
sortField = sorting
lastModifiedField = tstamp
additionalWhere =
pid = 5
url {
pageId = 6
fieldToParameterMap {
uid = tx_news_pi1[news]
}
additionalGetParameters {
tx_news_pi1 {
controller = News
action = detail
}
}
useCacheHash = 1
}
}
}
}
}
}
}
The generated url is missing the fieldToParameterMap.uid part. I had to change line 136 in “typo3/sysext/seo/Classes/XmlSitemap/RecordsXmlSitemapRenderer.php” to
$additionalParams[$urlPart] = $data['data'][$field];
in order to get the correct url.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.