Add support for Google news sitemaps

Created on 7 March 2022, about 3 years ago
Updated 27 March 2025, 10 days ago

This module provides a very important feature but is not working minimally maintained and isn't working with the latest versions of Drupal or simple sitemap:

https://www.drupal.org/project/simple_sitemap_news β†’

Is there any possibility of adding this functionality to simple_sitemap, perhaps as an optional submodule?

✨ Feature request
Status

Postponed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States playful

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • πŸ‡¨πŸ‡­Switzerland wengerk Lausanne

    I just needed the Google News Support and having to solution, contributing or adding the Generators to the project.
    I post also here a patch for the 4.2.2 release - for those willing to test over the 4.2.2 release and not 4.x.

    Proposed resolution

    • SitemapNewsGenerator: Handles the Sitemap schema and elements creation according to Google News specifications.
    • NewsUrlGenerator: Handles element construction path required by the Sitemap News Generator.
    • hook_simple_sitemap_entity_process: Added the Sitemap parameter to this hook to allow filtering by Sitemap type.

    Steps to reproduce

    1. Create a new Sitemap Type using the Google News Generator
    2. Create a new Sitemap that uses the Google News type created in step 1

    Remaining tasks

    • Discuss and iterate over the initial proposal and reach consensus
    • Update the Issue Summary
    • Implement test coverage
    • Merge

    User interface changes

    A new details section appears for the News Brand Name setting required by Google News.
    See https://developers.google.com/search/docs/crawling-indexing/sitemaps/new... for information about the <news:name> element.

    API changes

    hook_simple_sitemap_entity_process: Added the Sitemap parameter to this hook to allow filtering by Sitemap.
    This change could be separated into another issue if preferred.

  • πŸ‡¨πŸ‡­Switzerland wengerk Lausanne

    Well, it seems this feature will be killed by Google itself (https://support.google.com/news/publisher-center/answer/15898024).
    I would suggest to not merge this MR and close it.

  • πŸ‡©πŸ‡ͺGermany gbyte Berlin

    hook_simple_sitemap_entity_process: Added the Sitemap parameter to this hook to allow filtering by Sitemap.

    This will be added before the next release here: ✨ Discard adding if rabbit hole setting is active Needs review

    Well, it seems this feature will be killed by Google itself (https://support.google.com/news/publisher-center/answer/15898024).
    I would suggest to not merge this MR and close it.

    This is a good effort, it's a pity Google is killing it (but what do you expect from Google).

    I'd recommend adding the functionality to the Simple XML Sitemap news β†’ module which is currently not being maintained. This way we don't take on the burden of maintaining code that becomes unsupported upstream, but people can still take advantage.

  • πŸ‡©πŸ‡ͺGermany gbyte Berlin

    I'd recommend adding the functionality to the Simple XML Sitemap news module which is currently not being maintained. This way we don't take on the burden of maintaining code that becomes unsupported upstream, but people can still take advantage.

    In fact let me move this issue to that module's queue - maybe something will happen.

Production build 0.71.5 2024