Enable at least some entities in Simple XML Sitemap by default

Created on 13 December 2024, 8 days ago

Problem/Motivation

When you install Drupal CMS with SEO tools recipe, it install the Simple XML Sitemap module. This module has Taxonomy term, Content and Custom menu link enabled in the configuration, but no bundles are enabled by default to be indexed. This will cause that the sitemap is by default empty, even there is (could be) a content on the site (like the blog, ...).

I suggest to enable Tags (from Taxonomy term), Main navigation (from Custom menu link) and all content types (from Content) to be included in the sitemap by default.

Steps to reproduce

Install Drupal CMS with SEO tools recipe + with a Blog recipe
Visit sitemap on /sitemap.xml to see that it is empty (only frontpage is here)
Visit sitemap config on /admin/config/search/simplesitemap/entities to see that nothing is included by default

Proposed resolution

Enable Tags (from Taxonomy term), Main navigation (from Custom menu link) and all content types (from Content) to be included in the sitemap by default. The menu links will also cover our views to be included in the sitemap.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Component

Track: SEO

Created by

πŸ‡ΈπŸ‡°Slovakia poker10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @poker10
  • πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts

    I don't believe there is a config action that allows this recipe to add Simple XML Sitemap configuration entities.

    Like the metatag defaults, it would be up to the recipe that provides the views or forms to provide the metatag default config.

    I am updating this issue to be a meta issue. We should create child issues for each of the recipes that are missing the configuration.

  • πŸ‡ΈπŸ‡°Slovakia poker10

    Thanks. Created the child issues.

Production build 0.71.5 2024