From 9e5b15d9de9cb711fba22e84a4deee3e4a1194c6 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 20 Feb 2026 11:05:04 +0100 Subject: [PATCH] prev next chapitre block drupal settings --- .../sync/block.block.mathallo_contenu_3.yml | 46 +++++++++++++++++++ .../sync/block.block.mathallo_contenu_4.yml | 46 +++++++++++++++++++ config/sync/block_class.settings.yml | 3 ++ ...ore.entity_view_mode.paragraph.preview.yml | 4 +- 4 files changed, 97 insertions(+), 2 deletions(-) create mode 100644 config/sync/block.block.mathallo_contenu_3.yml create mode 100644 config/sync/block.block.mathallo_contenu_4.yml diff --git a/config/sync/block.block.mathallo_contenu_3.yml b/config/sync/block.block.mathallo_contenu_3.yml new file mode 100644 index 0000000..453e585 --- /dev/null +++ b/config/sync/block.block.mathallo_contenu_3.yml @@ -0,0 +1,46 @@ +uuid: e74678f7-d85f-4b43-9301-dc7952b86aa1 +langcode: fr +status: true +dependencies: + config: + - system.menu.contenu + module: + - block_class + - menu_block + - node + theme: + - mathallo +third_party_settings: + block_class: + classes: next-chapitre +id: mathallo_contenu_3 +theme: mathallo +region: content +weight: -3 +provider: null +plugin: 'menu_block:contenu' +settings: + id: 'menu_block:contenu' + label: 'Contenu next chapitre' + label_display: '0' + provider: menu_block + follow: true + follow_parent: active + display_empty: false + label_link: false + label_type: block + level: 1 + depth: 1 + expand_all_items: false + parent: 'contenu:' + render_parent: false + suggestion: contenu + hide_on_nonactive: true +visibility: + 'entity_bundle:node': + id: 'entity_bundle:node' + negate: false + context_mapping: + node: '@node.node_route_context:node' + bundles: + chapitre: chapitre diff --git a/config/sync/block.block.mathallo_contenu_4.yml b/config/sync/block.block.mathallo_contenu_4.yml new file mode 100644 index 0000000..bbbb7f7 --- /dev/null +++ b/config/sync/block.block.mathallo_contenu_4.yml @@ -0,0 +1,46 @@ +uuid: fa1097ba-d47a-4939-97a1-c310e6257709 +langcode: fr +status: true +dependencies: + config: + - system.menu.contenu + module: + - block_class + - menu_block + - node + theme: + - mathallo +third_party_settings: + block_class: + classes: prev-chapitre +id: mathallo_contenu_4 +theme: mathallo +region: content +weight: 0 +provider: null +plugin: 'menu_block:contenu' +settings: + id: 'menu_block:contenu' + label: 'Contenu prev chapitre' + label_display: '0' + provider: menu_block + follow: true + follow_parent: active + display_empty: false + label_link: false + label_type: block + level: 1 + depth: 1 + expand_all_items: false + parent: 'contenu:' + render_parent: false + suggestion: contenu + hide_on_nonactive: true +visibility: + 'entity_bundle:node': + id: 'entity_bundle:node' + negate: false + context_mapping: + node: '@node.node_route_context:node' + bundles: + chapitre: chapitre diff --git a/config/sync/block_class.settings.yml b/config/sync/block_class.settings.yml index d3ef065..1ea00a0 100644 --- a/config/sync/block_class.settings.yml +++ b/config/sync/block_class.settings.yml @@ -4,6 +4,9 @@ langcode: fr maxlength_block_class_field: 255 field_type: multiple_textfields default_case: standard +block_classes_stored: + - next-chapitre + - prev-chapitre enable_attributes: true enable_auto_complete: true qty_classes_per_block: 10 diff --git a/config/sync/core.entity_view_mode.paragraph.preview.yml b/config/sync/core.entity_view_mode.paragraph.preview.yml index 9fdc867..9007229 100644 --- a/config/sync/core.entity_view_mode.paragraph.preview.yml +++ b/config/sync/core.entity_view_mode.paragraph.preview.yml @@ -1,5 +1,5 @@ uuid: 74f4d612-52d4-4c83-9ae2-b3fb78a6a82b -langcode: en +langcode: fr status: true dependencies: module: @@ -7,7 +7,7 @@ dependencies: _core: default_config_hash: h3BeHVei4Lnyqbkao3YiF4KqoY-DhRvUNfEgKG8Rgjg id: paragraph.preview -label: Preview +label: Aperçu description: '' targetEntityType: paragraph cache: true