Issue Bug Closed

#106519Ext:seo custom sitemap templates won't work. (config key template not interpreted)

Florian Schuhmann 04/08/25, 09:27 updated 12/02/25, 14:22

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@<br>to<br>@plugin.tx_seo.config.xmlSitemap.sitemaps.<dedicated_sitemap>.template@</dedicated_sitemap></dedicated_sitemap>

Reviews 3

History 610

  1. Garvin Hicking changed category status New Accepted Is Regression 1 <span data-processor="relativetime" data-value="2025-04-08T10:03:27+00:00" > 04/08/25, 10:03 </span>

  2. Gerrit Code Review pushed patch set 1 for main to change 89125 status Accepted Under Review <span data-processor="relativetime" data-value="2025-04-15T20:20:16+00:00" > 04/15/25, 20:20 </span>

  3. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-04-16T07:25:08+00:00" > 04/16/25, 07:25 </span>

    Applied in changeset commit:633d1def0d93b4842c73ebf66a8d5bc757fd8849.