Actions
Bug #86716
closedRecordsXmlSitemapDataProvider not working
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2018-10-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Updated by Georg Ringer about 6 years ago
- Status changed from New to Resolved
this has been fixed #86602. I am closing this issue as duplicate
Updated by Georg Ringer about 6 years ago
- Is duplicate of Bug #86602: Ext: seo sitemap for records broken added
Actions