Install

Works with Drupal: 8.x

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 29.18 KB
MD5: 11a90ba692ebaae3f05934e21fcdf101
SHA-1: c5199a2023e567d33954045925a70a55ddcf264e
SHA-256: 12ee2a4d0a11a1b6cffac4e01a968e22f8c1b372cba672a3c1dfdad8f36cd99a
Download zip 42.91 KB
MD5: c0db6fb917845c924765c4810ac8107d
SHA-1: 651df44a90d906e0947be030a1371b1782af8ccb
SHA-256: 2424cf328cafb077a56d58fb4114d73d9bf8a3b77efa8e76f33ffbd92627fbce

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()

Created by: gbyte
Created on: 23 Aug 2016 at 10:41 UTC
Last updated: 10 Nov 2016 at 20:34 UTC
Bug fixes
New features
Unsupported

Other releases