Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Bug fixes:
#2752337: Href urls point to wrong language
#2773163: Unrouted URIs do not have internal representations
#2779797: Chuncks is not working
#2764247: sitemap form elements show on other forms
New features
#2736583: Exclude entries without translation
SEO improvements
The generated sitemap now shows all translation variants of an entity as locations and each location now references all translation variants as alternate links, according to Google's standard. This heavily increases the size of the XML output but should improve crawling.
API changes
The module features a new API which you can talk to from other modules or during site deployment. It is now discouraged to access the module's configuration storage directly as it may change; please use the simple_sitemap.generator service's API methods instead:
- getSetting()
- saveSetting()
- getConfig()
- saveConfig()
- getSitemap()
- generateSitemap()
- enableEntityType()
- disableEntityType()
- entityTypeIsEnabled()
- getBundleSettings()
- setBundleSettings()
- bundleIsIndexed()
- getEntityInstanceSettings()
- setEntityInstanceSettings()
- getCustomLink()
- addCustomLink()
- removeCustomLink()
- removeCustomLinks()
The method calls can be chained like so:
\Drupal::service('simple_sitemap.generator')
->saveSetting('remove_duplicates', TRUE)
->enableEntityType('node')
->setBundleSettings('node', 'page', ['index' => TRUE, 'priority' = 0.5])
->removeCustomLinks()
->addCustomLink('/some/view/page', ['priority' = 0.5])
->generateSitemap();
Other changes:
#2762411: Removed @file tag
#2762419: Replaced t() with $this->t()