Project

General

Profile

Actions

Bug #86716

closed

RecordsXmlSitemapDataProvider not working

Added by Simon Würstle about 6 years ago. Updated over 5 years ago.

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.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #86602: Ext: seo sitemap for records brokenClosedSusanne Moog2018-10-09

Actions
Actions #1

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

Actions #2

Updated by Georg Ringer about 6 years ago

  • Is duplicate of Bug #86602: Ext: seo sitemap for records broken added
Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF