diff --git a/composer.json b/composer.json index 2940bf117..f270db593 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index 2109d5937..6bd2cd3c2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f58b7ee6ff24d0da102116095910a003", + "content-hash": "394bdee51200e855bc01eb7c80c7f709", "packages": [ { "name": "amazeeio/drupal_integrations", @@ -7643,6 +7643,64 @@ "source": "https://git.drupalcode.org/project/simple_oauth" } }, + { + "name": "drupal/simple_sitemap", + "version": "4.2.2", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/simple_sitemap.git", + "reference": "4.2.2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/simple_sitemap-4.2.2.zip", + "reference": "4.2.2", + "shasum": "1f9c9197d37450fb347a4fa3f10191f5f4b5ef13" + }, + "require": { + "drupal/core": "^10.2 || ^11", + "ext-xmlwriter": "*" + }, + "conflict": { + "drush/drush": "<12.5.1" + }, + "require-dev": { + "drupal/paragraphs": "^1.18" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "4.2.2", + "datestamp": "1732485885", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Pawel Ginalski (gbyte)", + "homepage": "https://www.drupal.org/u/gbyte", + "email": "contact@gbyte.dev", + "role": "Maintainer" + }, + { + "name": "walkingdexter", + "homepage": "https://www.drupal.org/user/3251330" + } + ], + "description": "Creates a standard conform hreflang XML sitemap of the site content and provides a framework for developing other sitemap types.", + "homepage": "https://drupal.org/project/simple_sitemap", + "support": { + "source": "https://cgit.drupalcode.org/simple_sitemap", + "issues": "https://drupal.org/project/issues/simple_sitemap" + } + }, { "name": "drupal/taxonomy_unique", "version": "2.6.0", @@ -20199,6 +20257,6 @@ "platform": { "php": "8.1.*" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index d97c95b6f..90aff7088 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -165,6 +165,7 @@ module: serialization: 0 simple_menu_permissions: 0 simple_oauth: 0 + simple_sitemap: 0 system: 0 taxonomy: 0 taxonomy_unique: 0 diff --git a/config/sync/entity_clone.cloneable_entities.yml b/config/sync/entity_clone.cloneable_entities.yml index f2f878511..df9edaa0e 100644 --- a/config/sync/entity_clone.cloneable_entities.yml +++ b/config/sync/entity_clone.cloneable_entities.yml @@ -5,3 +5,5 @@ cloneable_entities: - paragraph - custom_perms_entity - password_policy + - simple_sitemap_type + - simple_sitemap diff --git a/config/sync/simple_sitemap.bundle_settings.default.eventinstance.default.yml b/config/sync/simple_sitemap.bundle_settings.default.eventinstance.default.yml new file mode 100644 index 000000000..33e5490ea --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.eventinstance.default.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.8' +changefreq: '' +include_images: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.eventseries.default.yml b/config/sync/simple_sitemap.bundle_settings.default.eventseries.default.yml new file mode 100644 index 000000000..33e5490ea --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.eventseries.default.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.8' +changefreq: '' +include_images: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.node.article.yml b/config/sync/simple_sitemap.bundle_settings.default.node.article.yml new file mode 100644 index 000000000..33e5490ea --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.node.article.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.8' +changefreq: '' +include_images: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.node.branch.yml b/config/sync/simple_sitemap.bundle_settings.default.node.branch.yml new file mode 100644 index 000000000..8e55877d3 --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.node.branch.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.5' +changefreq: '' +include_images: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.node.go_page.yml b/config/sync/simple_sitemap.bundle_settings.default.node.go_page.yml new file mode 100644 index 000000000..8e55877d3 --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.node.go_page.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.5' +changefreq: '' +include_images: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.node.page.yml b/config/sync/simple_sitemap.bundle_settings.default.node.page.yml new file mode 100644 index 000000000..8e55877d3 --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.node.page.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.5' +changefreq: '' +include_images: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.taxonomy_term.categories.yml b/config/sync/simple_sitemap.bundle_settings.default.taxonomy_term.categories.yml new file mode 100644 index 000000000..8e55877d3 --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.taxonomy_term.categories.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.5' +changefreq: '' +include_images: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.taxonomy_term.tags.yml b/config/sync/simple_sitemap.bundle_settings.default.taxonomy_term.tags.yml new file mode 100644 index 000000000..8e55877d3 --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.taxonomy_term.tags.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.5' +changefreq: '' +include_images: false diff --git a/config/sync/simple_sitemap.custom_links.default.yml b/config/sync/simple_sitemap.custom_links.default.yml new file mode 100644 index 000000000..18a8d4591 --- /dev/null +++ b/config/sync/simple_sitemap.custom_links.default.yml @@ -0,0 +1,7 @@ +_core: + default_config_hash: 25hWeYa4sasuJtHqKKcEN_nYiuEC1lMPYHsn5dawJEw +links: + - + path: / + priority: '1.0' + changefreq: daily diff --git a/config/sync/simple_sitemap.settings.yml b/config/sync/simple_sitemap.settings.yml new file mode 100644 index 000000000..343b316fe --- /dev/null +++ b/config/sync/simple_sitemap.settings.yml @@ -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 diff --git a/config/sync/simple_sitemap.sitemap.default.yml b/config/sync/simple_sitemap.sitemap.default.yml new file mode 100644 index 000000000..ec20568fd --- /dev/null +++ b/config/sync/simple_sitemap.sitemap.default.yml @@ -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 diff --git a/config/sync/simple_sitemap.sitemap.index.yml b/config/sync/simple_sitemap.sitemap.index.yml new file mode 100644 index 000000000..47442bad5 --- /dev/null +++ b/config/sync/simple_sitemap.sitemap.index.yml @@ -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 diff --git a/config/sync/simple_sitemap.type.default_hreflang.yml b/config/sync/simple_sitemap.type.default_hreflang.yml new file mode 100644 index 000000000..9b7057f8f --- /dev/null +++ b/config/sync/simple_sitemap.type.default_hreflang.yml @@ -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 diff --git a/config/sync/simple_sitemap.type.index.yml b/config/sync/simple_sitemap.type.index.yml new file mode 100644 index 000000000..434ae6c63 --- /dev/null +++ b/config/sync/simple_sitemap.type.index.yml @@ -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 diff --git a/web/modules/custom/dpl_update/dpl_update.install b/web/modules/custom/dpl_update/dpl_update.install index 44cddb426..f44751b86 100644 --- a/web/modules/custom/dpl_update/dpl_update.install +++ b/web/modules/custom/dpl_update/dpl_update.install @@ -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); } @@ -352,3 +353,11 @@ function dpl_update_update_10030(): string { return $return; } + + +/** + * Installing simple sitemap. + */ +function dpl_update_update_10031(): string { + return _dpl_update_install_modules(['simple_sitemap']); +}