Install

Works with Drupal: 8.x

Using Composer to manage Drupal site dependencies

Alternative installation files

Download simple_sitemap-8.x-3.3.tar.gztar.gz 89.03 KB
MD5: 1992949fb0bfa2ccb241a517189928e2
SHA-1: 749971fd4e6033ad7ad5d3437b2e465cd763dbbd
SHA-256: ba4d9d8f8a675f602763701270523d8afffd847e3fa423164214a510be4a1ae2
Download simple_sitemap-8.x-3.3.zipzip 139.59 KB
MD5: 5a9773745e15b55d0b114443a78c9187
SHA-1: 690605c75cc75bc088d0506505c71d78f7d46c8c
SHA-256: 8624d4b3e755898211a306bdbae7ea5866e27a6d1386d23a6ce737cc8be81042

Release notes

Changes since 3.2

New features

#3061963: Show variant publication time on settings page

Bug fixes

#3054546: Current preg_match() incompatible with php 7.3
#3060971: Custom base URL does not work for generated images
#3062747: Concurrent update of media module and simple_sitemap 2.x to 3.x fails
#3063870: Schema error after updating 2.x to 3.x

Improvements

#3062820: Enable addition of custom XML nodes to default sitemap

Changes since 2.x

Ability to create any type of sitemap via plugins

The 8.x-3.x release allows not only for customizing the URL generation through UrlGenerator plugins as 2.x does, but also creating multiple custom sitemap types through sitemapGenerator plugins and running all the sitemaps on the same Drupal instance. Now e.g a Google news sitemap can be added to a Drupal instance. This is possible through the new concept of sitemap variants.

Ability to create sitemap variants of various sitemap types via UI

Now e.g links form a specific entity bundle can be indexed in a specific sitemap variant with its own URL.

No more out of memory/time errors

The generation process has been streamlined to using a single queue regardless of whether batch generation is being used, or backend (cron/drush) processes. This should allow hundreds of thousands of entities/elements being indexed without memory errors.
If there is a problem, the generation process picks up from the last indexed element. The sitemap variants are only published after the generation has been completed.

Upgrade path from 2.x

There is an upgrade path from 8.x-2.x for regular users, however the API of the module has undergone several changes and custom code may need adjustments.

API changes since 3.2

None. Please make sure to use the below simple_sitemap.generator service API instead of accessing the module's configuration storage directly.

API methods

  • getSetting
  • saveSetting
  • setVariants
  • getSitemap
  • removeSitemap
  • generateSitemap
  • rebuildQueue
  • enableEntityType
  • disableEntityType
  • setBundleSettings
  • getBundleSettings
  • removeBundleSettings
  • setEntityInstanceSettings
  • getEntityInstanceSettings
  • removeEntityInstanceSettings
  • bundleIsIndexed
  • entityTypeIsEnabled
  • addCustomLink
  • getCustomLinks
  • removeCustomLinks
  • getSitemapManager
    • getSitemapVariants
    • addSitemapVariant
    • removeSitemapVariants
  • getQueueWorker
    • deleteQueue
    • rebuildQueue
    • getInitialElementCount
    • getQueuedElementCount
    • getStashedResultCount
    • getProcessedElementCount
    • generationInProgress

Hooks

  • hook_simple_sitemap_links_alter(&$links, $sitemap_variant)
  • hook_simple_sitemap_arbitrary_links_alter(&$arbitrary_links, $sitemap_variant)
  • hook_simple_sitemap_attributes_alter(&$attributes, $sitemap_variant)
  • hook_simple_sitemap_index_attributes_alter(&$index_attributes, $sitemap_variant)
  • hook_simple_sitemap_url_generators_alter(&$url_generators)
  • hook_simple_sitemap_sitemap_generators_alter(&$sitemap_generators)
  • hook_simple_sitemap_sitemap_types_alter(&$sitemap_types)

Check out this resource for more details about the module and in-depth tutorials.

Created by: gbyte
Created on: 18 Jul 2019 at 22:27 UTC
Last updated: 7 Oct 2019 at 10:58 UTC
Bug fixes
New features

Other releases