XML sitemap is empty


I’m trying to use SEO in order to create a XML sitemap of my site, but that sitemap doesn’t show any page.


<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

I installed the extension typo3/cms-seo, configured my sites in “Sites” module, included “XML sitemap” to the template in main page (uid 1) and added the following TypoScript in my template:

plugin.tx_seo {
    config {
        xmlSitemap {
            sitemaps {
                pages {
                    config {
                        # excludedDoktypes = 137, 138
                        # additionalWhere = AND (no_index = 0 OR no_follow = 0)
                        #rootPage = <optionally specify a different root page. (default: rootPageId from site configuration)>
                        rootPage = 1
                        #excludePagesRecursive = <comma-separated list of page IDs>

I don’t know what I’m doing wrong… I would appreciate your help. Thank you.

Did you add an route enhancer to your site configuration? I think it cannot done in the sites module, but in config.yaml directly.

Some thing like this:

    type: PageType
    default: ''
    index: ''
      sitemap.xml: 1533906435

Cheers Christian