Issue Bug Under Review

#109200Different root page specification not possible on core Sitemap

Gianluca Strafella 03/10/26, 10:54 updated 11/10/26, 18:18

Description

Dear support,
we have a problem when specify a different root page.
As documented here https://docs.typo3.org/m/typo3/reference-coreapi/13.4/en-us/ApiOverview/Seo/XmlSitemap.html#for-pages, seems possibile specify a custom configuration for rootPage, writing i.e.:

plugin.tx_seo.settings.xmlSitemap.sitemaps.pages.rootPage = <MY_ROOT>

We have tried to add the configuration via Constant editor in the typoscript record where we include ext SEO static typoscript, or adding it in the typoscript settings into another extension, but the configuration is ignored. Into the debugging, we see the other configurations but not that.

If we alter the core file cms-seo/Configuration/TypoScript/XmlSitemap/setup.typoscript adding rootPage = {$plugin.tx_seo.settings.xmlSitemap.sitemaps.pages.rootPage} under specific section, the module works properly.It seems that the configuration is “not merged” during the typoscript retrieving.

plugin.tx_seo {
  view {
    ...
  }

  config {
    # Here you can override the xslFile for all sitemaps
    # xslFile = EXT:seo/Resources/Public/CSS/Sitemap.xsl
    xmlSitemap {
      sitemaps {
        # Here you can override the xslFile for all sitemaps of a certain sitemapType
        # xslFile = EXT:seo/Resources/Public/CSS/Sitemap.xsl
        pages {
          provider = TYPO3\CMS\Seo\XmlSitemap\PagesXmlSitemapDataProvider
          config {
            rootPage =  {$plugin.tx_seo.settings.xmlSitemap.sitemaps.pages.rootPage}
            ...
          }
        }
      }
    }
  }
}

Thank you,
Gianluca

Reviews 1

History 25

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2026-03-10T11:14:20+00:00" > 03/10/26, 11:14 </span>

    Please put your overriding typoscript in an extension that has a dependency to EXT:seo. The order matters, and then your ext can overwrite ext:seo ts.

    (Hopefully)

  2. Gianluca Strafella commented <span data-processor="relativetime" data-value="2026-03-10T11:28:18+00:00" > 03/10/26, 11:28 </span>

    Hello @ghi,
    Before to open this issue I’ve tried that road, but the situation not changed.

    Gianluca

  3. Gerrit Code Review pushed patch set 1 for main to change 96499 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2026-10-07T18:29:32+00:00" > 10/07/26, 18:29 </span>