Due to SEO reasons, I am tasked to enable the xmlsitemap module to all the sites I manage. We have one site that already uses it and we want to apply it's rules to the other sites.

I have an update hook ready, but the xmlsitemap.settings.yml file is only picking up the default settings for Frontpage. I have rules set for both Media and Content(Which generated their own yml files).

This is the code snippet generated for xmlsitemap.settings.yml:

minimum_lifetime: 0
xsl: 1
prefetch_aliases: 1
chunk_size: auto
batch_limit: 100
path: xmlsitemap
frontpage_priority: !!float 1
frontpage_changefreq: 86400
lastmod_format: 'Y-m-d\TH:i\Z'
gz: false
clean_url: 0
disable_cron_regeneration: false
i18n_selection_mode: simple

Comments

kevinting created an issue.

Dave Reid’s picture

Yes, you need to import the other .yml files that correspond to the respective entity type configurations, the xmlsitemap.settings.yml will only contain the frontpage settings by design.