From 51144a2e6ebd554987d864e467e071702b98de71 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 24 Jun 2024 16:34:02 +0200 Subject: [PATCH] /sitespilotes --- composer.json | 1 + composer.lock | 62 ++++++++++++++++++- .../block.block.reha_navigationprincipale.yml | 3 +- config/sync/node.type.site.yml | 11 +++- config/sync/views.view.sites.yml | 2 +- 5 files changed, 74 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index dad11de..47e8e4e 100644 --- a/composer.json +++ b/composer.json @@ -35,6 +35,7 @@ "drupal/login_destination": "^2.0@beta", "drupal/mailsystem": "^4.4", "drupal/matomo": "^1.23", + "drupal/menu_trail_by_path": "^2.0", "drupal/mimemail": "^1.0@alpha", "drupal/notify": "^2.0@beta", "drupal/page_manager": "^4.0@RC", diff --git a/composer.lock b/composer.lock index 848f0f5..16b57f9 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": "6791033095e7dafc3474d1203ca03d50", + "content-hash": "d325be3b3728dbf80aa71107fd2d55b1", "packages": [ { "name": "asm89/stack-cors", @@ -6152,6 +6152,66 @@ "issues": "https://www.drupal.org/project/issues/menu_position" } }, + { + "name": "drupal/menu_trail_by_path", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/menu_trail_by_path.git", + "reference": "2.0.1" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/menu_trail_by_path-2.0.1.zip", + "reference": "2.0.1", + "shasum": "3c2c1b0ee669c26e6ccba8a345605b7c932be2bf" + }, + "require": { + "drupal/core": "^8.8 || ^9.0 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.0.1", + "datestamp": "1701298206", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0" + ], + "authors": [ + { + "name": "Berdir", + "homepage": "https://www.drupal.org/user/214652" + }, + { + "name": "davy-r", + "homepage": "https://www.drupal.org/user/3278771" + }, + { + "name": "mbovan", + "homepage": "https://www.drupal.org/user/3149657" + }, + { + "name": "redndahead", + "homepage": "https://www.drupal.org/user/160320" + }, + { + "name": "SeriousMatters", + "homepage": "https://www.drupal.org/user/290439" + } + ], + "description": "Expand menus and set active-trail according to the current path.", + "homepage": "https://www.drupal.org/project/menu_trail_by_path", + "support": { + "source": "https://git.drupalcode.org/project/menu_trail_by_path" + } + }, { "name": "drupal/mimemail", "version": "1.0.0-alpha6", diff --git a/config/sync/block.block.reha_navigationprincipale.yml b/config/sync/block.block.reha_navigationprincipale.yml index 166ae1e..df100d9 100644 --- a/config/sync/block.block.reha_navigationprincipale.yml +++ b/config/sync/block.block.reha_navigationprincipale.yml @@ -5,6 +5,7 @@ dependencies: config: - system.menu.main module: + - block_class - menu_block theme: - reha @@ -24,7 +25,7 @@ settings: label_link: false label_type: block level: 1 - depth: 0 + depth: 1 expand_all_items: false parent: 'main:' suggestion: main diff --git a/config/sync/node.type.site.yml b/config/sync/node.type.site.yml index da1263c..ab40dfa 100644 --- a/config/sync/node.type.site.yml +++ b/config/sync/node.type.site.yml @@ -3,11 +3,18 @@ langcode: fr status: true dependencies: module: + - autotitle - menu_ui third_party_settings: menu_ui: - available_menus: { } - parent: '' + available_menus: + - main + parent: 'main:views_view:views.sites.page_1' + autotitle: + enabled: false + field: _none + fallback_title: 'Untitled [site]' + headings: { } name: Site type: site description: '' diff --git a/config/sync/views.view.sites.yml b/config/sync/views.view.sites.yml index fc6a636..00e0732 100644 --- a/config/sync/views.view.sites.yml +++ b/config/sync/views.view.sites.yml @@ -565,7 +565,7 @@ display: category_fallback: '' category_facets: { } category_facets_concat_separator: ', ' - path: lessitespilotes + path: sitespilotes menu: type: normal title: 'Les sites pilotes'