Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Bug fixes
#2913848: Image Sitemaps <image:loc> Doesn't Use Default Base URL
#2913507: Undefined index: include_images
#2928126: Skipping links for entities under certain language conditions
#2905113: UI generation out of memory issue on very large sites
New features
#2875286: Exclude translation variants for non-entity pages allows to exclude languages before generating the sitemap.
#2923551: Make generators pluggable through plugins
#2912994: Implement image indexation for custom links
#2912684: Add Drush 9 command support
API changes
In #2923551: Make generators pluggable through plugins the URL generators have been refactored into plugins. It is now possible to create new generators or alter existing ones through the new hook hook_simple_sitemap_url_generators_alter(&$generators)
. See module documentation and gbyte blog for more details.
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()
- getSitemap()
- generateSitemap()
- getGeneratedAgo()
- enableEntityType()
- disableEntityType()
- setBundleSettings()
- getBundleSettings()
- setEntityInstanceSettings()
- getEntityInstanceSettings()
- removeEntityInstanceSettings()
- bundleIsIndexed()
- entityTypeIsEnabled()
- addCustomLink()
- getCustomLinks()
- getCustomLink()
- removeCustomLink()
- removeCustomLinks()
Hooks
- hook_simple_sitemap_links_alter(&$links)
- hook_simple_sitemap_arbitrary_links_alter(&$arbitrary_links)
- hook_simple_sitemap_attributes_alter(&$attributes)
- hook_simple_sitemap_index_attributes_alter(&$index_attributes)
- hook_simple_sitemap_url_generators_alter(&$generators) new
Read more about the API in the documentation.
Check out this resource for more details about the module and in-depth tutorials.