Bug #106519
closedExt:seo custom sitemap templates won't work. (config key template not interpreted)
100%
Description
To get a google-specific sitemap for news or videos, it was possible to specify a separate template for rendering the sitemap like described in the docs at https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Seo/XmlSitemap.html#for-records
This procedure is also used in EXT:news:
https://github.com/georgringer/news/blob/main/Configuration/TypoScript/SeoSitemap/setup.typoscript#L14-L15
Since the changes in the following patchset, the above configuration no longer works.
https://forge.typo3.org/issues/98914
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.1/Feature-98914-TypoScriptAsRequestAttribute.html
The affected class is XmlSitemapRenderer::renderSitemap
from EXT:seo
- $template = ($sitemapConfig['config']['template'] ?? false) ?: 'Sitemap'; + $template = $sitemapConfig['template'] ?? 'Sitemap';
With this change, the config key 'template' was move from plugin.tx_seo.config.xmlSitemap.sitemaps.<dedicated_sitemap>.config.template
toplugin.tx_seo.config.xmlSitemap.sitemaps.<dedicated_sitemap>.template
Updated by Garvin Hicking 20 days ago
- Related to Feature #98914: Add TypoScript as Request attribute added
Updated by Garvin Hicking 20 days ago
- Category changed from SEO to Fluid
- Status changed from New to Accepted
- Is Regression set to Yes
Updated by Andri Steiner 20 days ago
ยท Edited
- File 20250403_185050_3240.jpg added
Updated by Gerrit Code Review 12 days ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89125
Updated by Gerrit Code Review 12 days ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89125
Updated by Gerrit Code Review 12 days ago
Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89128
Updated by Gerrit Code Review 12 days ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89129
Updated by Georg Ringer 12 days ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 633d1def0d93b4842c73ebf66a8d5bc757fd8849.