Install
Works with Drupal: ^8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Changes since 3.10
3.x won't be getting any new features. The development is focused on 4.x which is stable. Please use that instead! See #3219383: Roadmap for 4.x. An upgrade path from 3.x and 2.x is provided.
Improvements
#3223047: Access checking must be explicitly specified on entity queries
#3233128: Default submission interval too long (3.x)
#3215552: Remove last_submitted config reference from simple_sitemap_engine entity
New features
#3143229: Support wildcards in the view path
Bug fixes
#3241063: Notice: Undefined index: simple_sitemap_regenerate_now in simple_sitemap_entity_form_submit()
#3230346: Warning: foreach() argument must be of type array|object, bool given in EntityUrlGenerator->generate() (line 219)
API changes
None.
API
Please make sure to use the below simple_sitemap.generator service API instead of accessing the module's configuration storage directly.
- getSetting
- saveSetting
- setVariants
- getSitemap
- removeSitemap
- queue
- rebuildQueue
- generateSitemap
- enableEntityType
- disableEntityType
- setBundleSettings
- getBundleSettings
- removeBundleSettings
- setEntityInstanceSettings
- getEntityInstanceSettings
- removeEntityInstanceSettings
- bundleIsIndexed
- entityTypeIsEnabled
- addCustomLink
- getCustomLinks
- removeCustomLinks
- getSitemapManager
- getSitemapVariants
- addSitemapVariant
- removeSitemapVariants
- getQueueWorker
- getInitialElementCount
- getProcessedElementCount
- generationInProgress
- 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.