Bug #86716

RecordsXmlSitemapDataProvider not working

Added by Simon Würstle 11 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2018-10-23
Due date:
% Done:

0%

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.


Related issues

Duplicates TYPO3 Core - Bug #86602: Ext: seo sitemap for records broken Closed 2018-10-09

History

#1 Updated by Georg Ringer 11 months ago

  • Status changed from New to Resolved

this has been fixed #86602. I am closing this issue as duplicate

#2 Updated by Georg Ringer 11 months ago

  • Duplicates Bug #86602: Ext: seo sitemap for records broken added

#3 Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF