Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable and configure sitemap. KBHBIB-46 #1892

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"drupal/selective_better_exposed_filters": "^3.0",
"drupal/simple_menu_permissions": "^2.0",
"drupal/simple_oauth": "^5.2",
"drupal/simple_sitemap": "^4.2",
"drupal/taxonomy_unique": "^2.5",
"drupal/telephone_formatter": "^1.2",
"drupal/theme_permission": "^2.0",
Expand Down
62 changes: 60 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ module:
serialization: 0
simple_menu_permissions: 0
simple_oauth: 0
simple_sitemap: 0
system: 0
taxonomy: 0
taxonomy_unique: 0
Expand Down
2 changes: 2 additions & 0 deletions config/sync/entity_clone.cloneable_entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ cloneable_entities:
- paragraph
- custom_perms_entity
- password_policy
- simple_sitemap_type
- simple_sitemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
index: true
priority: '0.8'
changefreq: ''
include_images: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
index: true
priority: '0.8'
changefreq: ''
include_images: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
index: true
priority: '0.8'
changefreq: ''
include_images: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
index: true
priority: '0.5'
changefreq: ''
include_images: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
index: true
priority: '0.5'
changefreq: ''
include_images: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
index: true
priority: '0.5'
changefreq: ''
include_images: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
index: true
priority: '0.5'
changefreq: ''
include_images: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
index: true
priority: '0.5'
changefreq: ''
include_images: false
7 changes: 7 additions & 0 deletions config/sync/simple_sitemap.custom_links.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_core:
default_config_hash: 25hWeYa4sasuJtHqKKcEN_nYiuEC1lMPYHsn5dawJEw
links:
-
path: /
priority: '1.0'
changefreq: daily
22 changes: 22 additions & 0 deletions config/sync/simple_sitemap.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
_core:
default_config_hash: MUpaAk1hn-0Ph4OFw3DD_6gUF9KbGwxja9Y0qmampzo
max_links: 2000
cron_generate: true
cron_generate_interval: 0
generate_duration: 10000
entities_per_queue_item: 50
remove_duplicates: true
skip_untranslated: true
xsl: true
base_url: ''
default_variant: default
custom_links_include_images: false
disable_language_hreflang: false
hide_branding: false
excluded_languages: { }
enabled_entity_types:
- node
- taxonomy_term
- menu_link_content
- eventinstance
- eventseries
13 changes: 13 additions & 0 deletions config/sync/simple_sitemap.sitemap.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: 3950dade-1575-4bdc-9696-5c9f8049ea6c
langcode: en
status: true
dependencies:
config:
- simple_sitemap.type.default_hreflang
_core:
default_config_hash: rzLPapRSW-bgTs4MObzlqsqwj5IxPGO9EQZolw2ZzFc
id: default
label: Default
description: 'The default hreflang sitemap - lists URLs to be indexed by modern search engines.'
type: default_hreflang
weight: 0
13 changes: 13 additions & 0 deletions config/sync/simple_sitemap.sitemap.index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: c852825e-15ed-4a63-8843-c99f552c9920
langcode: en
status: false
dependencies:
config:
- simple_sitemap.type.index
_core:
default_config_hash: WffB95XdMvoUEvymTyLFLB-Q_JnCbbjy9Kj7TvlzN9s
id: index
label: 'Sitemap Index'
description: 'The sitemap index listing all other sitemaps - useful if there are at least two other sitemaps. In most cases this sitemap should be last in the generation queue and set as the default sitemap.'
type: index
weight: 1000
15 changes: 15 additions & 0 deletions config/sync/simple_sitemap.type.default_hreflang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuid: 7a853d39-0720-451f-8a03-27f6a823ec17
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: yaHZPVGZtW3BUvzzdMgc4ed5l4GCiFjcgYlLZmupcqA
id: default_hreflang
label: 'Default hreflang'
description: 'The default hreflang sitemap type. A sitemap of this type is understood by most modern search engines.'
sitemap_generator: default
url_generators:
- custom
- entity
- entity_menu_link_content
- arbitrary
12 changes: 12 additions & 0 deletions config/sync/simple_sitemap.type.index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uuid: bc472516-42e5-4266-8f35-9b82b6e59476
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: yS_TZXc9X2zr2RfAwk7momW3LG9wra--H2ApqA5Vgak
id: index
label: 'Sitemap Index'
description: 'The sitemap index sitemap type. A sitemap of this type lists sitemaps of all other types.'
sitemap_generator: index
url_generators:
- index
8 changes: 8 additions & 0 deletions web/modules/custom/dpl_update/dpl_update.install
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function dpl_update_install(): string {
$messages[] = dpl_update_update_10028();
$messages[] = dpl_update_update_10029();
$messages[] = dpl_update_update_10030();
$messages[] = dpl_update_update_10031();

return implode('\r\n', $messages);
}
Expand Down Expand Up @@ -352,3 +353,10 @@ function dpl_update_update_10030(): string {

return $return;
}

/**
* Installing simple sitemap.
*/
function dpl_update_update_10031(): string {
return _dpl_update_install_modules(['simple_sitemap']);
}
Loading