https://github.com/drunomics/simple-sitemap-extensions
https://github.com/drunomics/simple-sitemap-extensions
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/drunomics/simple-sitemap-extensions
- Owner: drunomics
- Archived: true
- Created: 2020-11-24T09:49:24.000Z (over 5 years ago)
- Default Branch: 1.x
- Last Pushed: 2023-02-21T10:20:54.000Z (over 3 years ago)
- Last Synced: 2025-10-20T04:24:05.031Z (8 months ago)
- Language: PHP
- Size: 48.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple sitemap extensions
## Overview:
Extends simple sitemap to add support for sitemap index files and configuring
variants per index file.
## Usage:
* install module
### Sitemap index
* goto /admin/config/search/simplesitemap/variants
* add one or more variants of type sitemap_index
`index | sitemap_index | Sitemap Index`
or multiple:
`site-a_index | sitemap_index | Sitemap Index Site A`
`site-b_index | sitemap_index | Sitemap Index Site B`
`site-c_index | sitemap_index | Sitemap Index Site C`
* add more variants you would need & save configuration
* in /admin/config/search/simplesitemap/settings
set the default sitemap variant to the sitemap index
* enable the variants which should be on a sitemap index on
/admin/config/search/simplesitemap/sitemap-index
* export config, save & regenerate sitemaps
### extended_entity (Extended entity) sitemap type
To get extra data for entities, as images.
For this a config file will be needed to be added.
`simple_sitemap_extensions.extended_entity.image_paths.yml`
Which should define the mapping to the images for entity.
Example for a node article with different fields that contain images
```
node:
article:
fields:
field_hero:
-
bundles:
- gallery
fields:
field_media:
-
bundles:
- image
fields:
field_image: true
-
bundles:
- image
fields:
field_image:
-
bundles:
- image
fields:
field_image: true
field_paragraphs:
-
bundles:
- gallery
fields:
field_media:
-
bundles:
- image
fields:
field_image: true
-
bundles:
- image
fields:
field_image:
-
bundles:
- image
fields:
field_image: true
field_teaser_media:
-
bundles:
- image
fields:
field_image: true
```
Then add an `extended_entity` sitemap variant:
* goto /admin/config/search/simplesitemap/variants
* add the new variant of type `extended_entity`
Example:
`variant_machine_name | extended_entity | Variant label`