diff --git a/composer.json b/composer.json index 6077bed..7b93610 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,8 @@ "drupal/core-composer-scaffold": "^10.4", "drupal/core-project-message": "^10.4", "drupal/core-recommended": "^10.4", + "drupal/entity_block": "^2.0", + "drupal/page_manager": "^4.0@RC", "drupal/upgrade_status": "^4.3", "wikimedia/composer-merge-plugin": "^2.1" }, @@ -104,6 +106,17 @@ "recurse": true, "replace": false, "merge-extra": true + }, + "patches": { + "drupal/paragraphs": { + "Skip saving empty paragraphs for certain types https://www.drupal.org/project/paragraphs/issues/2877695" : "https://www.drupal.org/files/issues/2021-03-31/2877695-35.patch" + }, + "drupal/page_manager": { + "https://www.drupal.org/project/page_manager/issues/3438993": "https://www.drupal.org/files/issues/2024-08-14/page-manager-3438993-MR34-24.patch" + }, + "drupal/core": { + "CKEDITOR for summary https://www.drupal.org/project/drupal/issues/2671162":"https://www.drupal.org/files/issues/2025-08-23/2671162-158.patch" + } } } } diff --git a/composer.lock b/composer.lock index a38695e..748daf8 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": "066db43487766081dd580faa75f8ccd7", + "content-hash": "cc3d29c7253fdc07cd13d6d07968ca95", "packages": [ { "name": "asm89/stack-cors", @@ -3735,6 +3735,70 @@ "issues": "https://www.drupal.org/project/issues/entity" } }, + { + "name": "drupal/entity_block", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/entity_block.git", + "reference": "2.0.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/entity_block-2.0.0.zip", + "reference": "2.0.0", + "shasum": "06b2cdbd4bbdd503c87185ee01ad6f2bc1e298e0" + }, + "require": { + "drupal/core": "^10.3 || ^11" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.0.0", + "datestamp": "1736279748", + "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": "floretan", + "homepage": "https://www.drupal.org/user/66163" + }, + { + "name": "Jaesin", + "homepage": "https://www.drupal.org/user/841054" + }, + { + "name": "mglaman", + "homepage": "https://www.drupal.org/user/2416470" + }, + { + "name": "rrrob", + "homepage": "https://www.drupal.org/user/273533" + }, + { + "name": "shadcn", + "homepage": "https://www.drupal.org/user/571032" + }, + { + "name": "smustgrave", + "homepage": "https://www.drupal.org/user/3252890" + } + ], + "description": "Let site administrators place content entities as blocks.", + "homepage": "https://www.drupal.org/project/entity_block", + "support": { + "source": "https://git.drupalcode.org/project/entity_block" + } + }, { "name": "drupal/entity_browser", "version": "2.15.0", @@ -5412,6 +5476,77 @@ "issues": "https://www.drupal.org/project/issues/menu_position" } }, + { + "name": "drupal/page_manager", + "version": "4.0.0-rc3", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/page_manager.git", + "reference": "8.x-4.0-rc3" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/page_manager-8.x-4.0-rc3.zip", + "reference": "8.x-4.0-rc3", + "shasum": "9c68ed3e87196e42ceeb80d53064494d7a104abc" + }, + "require": { + "drupal/core": "^9.5 || ^10 || ^11", + "drupal/ctools": "^3.15 || ^4.1" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-4.0-rc3", + "datestamp": "1721976404", + "security-coverage": { + "status": "not-covered", + "message": "RC releases are not covered by Drupal security advisories." + } + }, + "branch-alias": { + "dev-8.x-4.x": "4.x-dev" + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Tim Plunkett", + "homepage": "https://www.drupal.org/u/tim.plunkett", + "role": "Maintainer" + }, + { + "name": "EclipseGc", + "homepage": "https://www.drupal.org/user/61203" + }, + { + "name": "japerry", + "homepage": "https://www.drupal.org/user/45640" + }, + { + "name": "joelpittet", + "homepage": "https://www.drupal.org/user/160302" + }, + { + "name": "manuel.adan", + "homepage": "https://www.drupal.org/user/516420" + }, + { + "name": "phenaproxima", + "homepage": "https://www.drupal.org/user/205645" + } + ], + "description": "Provides a way to place blocks on a custom page.", + "homepage": "https://www.drupal.org/project/page_manager", + "support": { + "source": "https://git.drupal.org/project/page_manager.git", + "issues": "https://www.drupal.org/project/issues/page_manager", + "irc": "irc://irc.freenode.org/drupal-contribute" + } + }, { "name": "drupal/pagerer", "version": "3.1.1", @@ -11985,6 +12120,7 @@ "drupal/maxlength": 10, "drupal/menu_block": 20, "drupal/menu_position": 20, + "drupal/page_manager": 5, "drupal/path_alias_xt": 20, "drupal/pathologic": 15, "drupal/profile": 5, diff --git a/config/sync/core.entity_form_display.node.static.default.yml b/config/sync/core.entity_form_display.node.static.default.yml index a08114b..4b51169 100644 --- a/config/sync/core.entity_form_display.node.static.default.yml +++ b/config/sync/core.entity_form_display.node.static.default.yml @@ -6,7 +6,9 @@ dependencies: - field.field.node.static.body - node.type.static module: + - advanced_text_formatter - field_group + - maxlength - path - text third_party_settings: @@ -14,7 +16,6 @@ third_party_settings: group_details: children: - langcode - - translation label: Details region: content parent_name: '' @@ -42,10 +43,18 @@ content: region: content settings: rows: 9 - summary_rows: 3 + summary_rows: 10 placeholder: '' show_summary: false - third_party_settings: { } + third_party_settings: + maxlength: + maxlength_js: null + maxlength_js_label: 'Contenu limité à @limit caractères, restant : @remaining' + maxlength_js_summary: null + maxlength_js_label_summary: 'Contenu limité à @limit caractères, restant : @remaining' + maxlength_js_enforce: false + advanced_text_formatter: + show_token_tree: 0 created: type: datetime_timestamp weight: 4 diff --git a/config/sync/core.entity_view_display.node.chapitre.home.yml b/config/sync/core.entity_view_display.node.chapitre.home.yml new file mode 100644 index 0000000..7ff3600 --- /dev/null +++ b/config/sync/core.entity_view_display.node.chapitre.home.yml @@ -0,0 +1,49 @@ +uuid: 522686f4-4476-44da-90b7-01c41efdb51a +langcode: fr +status: true +dependencies: + config: + - core.entity_view_mode.node.home + - field.field.node.chapitre.body + - field.field.node.chapitre.field_chapitre_num + - field.field.node.chapitre.field_parties + - node.type.chapitre + module: + - layout_builder + - text + - user +third_party_settings: + layout_builder: + enabled: false + allow_custom: false +id: node.chapitre.home +targetEntityType: node +bundle: chapitre +mode: home +content: + body: + type: text_summary_or_trimmed + label: hidden + settings: + trim_length: 600 + third_party_settings: { } + weight: 1 + region: content + field_chapitre_num: + type: number_integer + label: inline + settings: + thousand_separator: '' + prefix_suffix: true + third_party_settings: { } + weight: 0 + region: content + links: + settings: { } + third_party_settings: { } + weight: 2 + region: content +hidden: + field_parties: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.static.home.yml b/config/sync/core.entity_view_display.node.static.home.yml new file mode 100644 index 0000000..b20dcf8 --- /dev/null +++ b/config/sync/core.entity_view_display.node.static.home.yml @@ -0,0 +1,39 @@ +uuid: c87053aa-10df-4e5b-98f8-0b0a76f06a16 +langcode: fr +status: true +dependencies: + config: + - core.entity_view_mode.node.home + - field.field.node.static.body + - node.type.static + module: + - layout_builder + - text + - user +third_party_settings: + layout_builder: + enabled: false + allow_custom: false +_core: + default_config_hash: 9mgezio6-8HiMYhQHSfouZjKyY4BFKR71Yh4kbSmAYU +id: node.static.home +targetEntityType: node +bundle: static +mode: home +content: + body: + type: text_summary_or_trimmed + label: hidden + settings: + trim_length: 600 + third_party_settings: { } + weight: 0 + region: content + links: + settings: { } + third_party_settings: { } + weight: 1 + region: content +hidden: + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.static.teaser.yml b/config/sync/core.entity_view_display.node.static.teaser.yml new file mode 100644 index 0000000..329b96a --- /dev/null +++ b/config/sync/core.entity_view_display.node.static.teaser.yml @@ -0,0 +1,39 @@ +uuid: dc86777a-d572-4e87-b4f1-0413cccb1a02 +langcode: fr +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.static.body + - node.type.static + module: + - layout_builder + - text + - user +third_party_settings: + layout_builder: + enabled: false + allow_custom: false +_core: + default_config_hash: 9mgezio6-8HiMYhQHSfouZjKyY4BFKR71Yh4kbSmAYU +id: node.static.teaser +targetEntityType: node +bundle: static +mode: teaser +content: + body: + type: text_summary_or_trimmed + label: hidden + settings: + trim_length: 100 + third_party_settings: { } + weight: 0 + region: content + links: + settings: { } + third_party_settings: { } + weight: 1 + region: content +hidden: + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_mode.block_content.full.yml b/config/sync/core.entity_view_mode.block_content.full.yml new file mode 100644 index 0000000..3a78237 --- /dev/null +++ b/config/sync/core.entity_view_mode.block_content.full.yml @@ -0,0 +1,13 @@ +uuid: a7558c64-a75d-42d5-a75e-68c909b019fd +langcode: fr +status: false +dependencies: + module: + - block_content +_core: + default_config_hash: Q7yUUYeRLByl-MCGveKKF_KhAtNICLCMJuKWfugCvso +id: block_content.full +label: Complet +description: '' +targetEntityType: block_content +cache: true diff --git a/config/sync/core.entity_view_mode.node.home.yml b/config/sync/core.entity_view_mode.node.home.yml new file mode 100644 index 0000000..20a2fbe --- /dev/null +++ b/config/sync/core.entity_view_mode.node.home.yml @@ -0,0 +1,11 @@ +uuid: 5c23d4c6-8032-4d42-a111-6e2d1a31fc37 +langcode: fr +status: true +dependencies: + module: + - node +id: node.home +label: home +description: '' +targetEntityType: node +cache: true diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 59b8afb..bb134ba 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -11,6 +11,7 @@ module: better_exposed_filters: 0 block: 0 block_class: 0 + block_content: 0 breakpoint: 0 bulkdelete: 0 cer: 0 @@ -40,6 +41,7 @@ module: editor: 0 email_registration: 0 embed: 0 + entity_block: 0 entity_browser: 0 entity_browser_enhanced: 0 field: 0 @@ -54,6 +56,8 @@ module: image: 0 inline_entity_form: 0 language: 0 + layout_builder: 0 + layout_discovery: 0 link: 0 link_attributes: 0 linkit: 0 @@ -68,6 +72,8 @@ module: node: 0 options: 0 page_cache: 0 + page_manager: 0 + page_manager_ui: 0 pagerer: 0 path: 0 path_alias: 0 diff --git a/config/sync/field.field.node.static.body.yml b/config/sync/field.field.node.static.body.yml index 3a3e99b..6030e19 100644 --- a/config/sync/field.field.node.static.body.yml +++ b/config/sync/field.field.node.static.body.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.storage.node.body + - filter.format.wysiwyg - node.type.static module: - text @@ -22,5 +23,6 @@ default_value_callback: '' settings: display_summary: true required_summary: false - allowed_formats: { } + allowed_formats: + - wysiwyg field_type: text_with_summary diff --git a/config/sync/field.storage.block_content.body.yml b/config/sync/field.storage.block_content.body.yml new file mode 100644 index 0000000..465482f --- /dev/null +++ b/config/sync/field.storage.block_content.body.yml @@ -0,0 +1,21 @@ +uuid: a17026db-c6b5-4a6d-9eb2-dc648d8faaba +langcode: en +status: true +dependencies: + module: + - block_content + - text +_core: + default_config_hash: eS0snV_L3dx9shtWRTzm5eblwOJ7qKWC9IE-4GMTDFc +id: block_content.body +field_name: body +entity_type: block_content +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/config/sync/page_manager.page.home.yml b/config/sync/page_manager.page.home.yml new file mode 100644 index 0000000..b952eab --- /dev/null +++ b/config/sync/page_manager.page.home.yml @@ -0,0 +1,12 @@ +uuid: fb91329a-cf33-4771-8563-a03002a85f56 +langcode: fr +status: true +dependencies: { } +id: home +label: home +description: '' +use_admin_theme: false +path: /home +access_logic: and +access_conditions: { } +parameters: { } diff --git a/config/sync/page_manager.page.node_view.yml b/config/sync/page_manager.page.node_view.yml new file mode 100644 index 0000000..79747c3 --- /dev/null +++ b/config/sync/page_manager.page.node_view.yml @@ -0,0 +1,18 @@ +uuid: f03ff0d8-0f57-4d38-a451-4a98af9a8ff9 +langcode: fr +status: true +dependencies: { } +_core: + default_config_hash: RCVWP-yHwxSNiQORMIabDgHMEVqOMW58w80BQgRFJ4k +id: node_view +label: 'Node view' +description: 'When enabled, this overrides the default Drupal behavior for displaying nodes at /node/{node}. If you add variants, you may use selection criteria such as node type or language or user access to provide different views of nodes. If no variant is selected, the default Drupal node view will be used. This page only affects nodes viewed as pages, it will not affect nodes viewed in lists or at other locations.' +use_admin_theme: false +path: '/node/{node}' +access_logic: and +access_conditions: { } +parameters: + node: + machine_name: node + label: Nœud + type: 'entity:node' diff --git a/config/sync/page_manager.page_variant.home-layout_builder-0.yml b/config/sync/page_manager.page_variant.home-layout_builder-0.yml new file mode 100644 index 0000000..fe78e48 --- /dev/null +++ b/config/sync/page_manager.page_variant.home-layout_builder-0.yml @@ -0,0 +1,59 @@ +uuid: 963f9420-969f-470d-9456-3fc481f7661f +langcode: fr +status: true +dependencies: + config: + - page_manager.page.home + - views.view.chapitres + module: + - entity_block + - layout_discovery + - views +id: home-layout_builder-0 +label: 'Layout Builder' +weight: 0 +variant: layout_builder +variant_settings: + id: layout_builder + label: null + weight: 0 + uuid: 3a14630d-426d-4294-bdca-f76a37ffced7 + sections: + - + layout_id: layout_onecol + layout_settings: + label: main + context_mapping: { } + components: + e318efd7-86c6-4a38-a53e-825027ccd254: + uuid: e318efd7-86c6-4a38-a53e-825027ccd254 + region: content + configuration: + id: 'entity_block:node' + label: 'Présentation (Contenu)' + label_display: '0' + provider: entity_block + view_mode: home + context_mapping: { } + entity: '1' + weight: 0 + additional: { } + 3f8348bb-e1d8-485a-9914-dcdf777d9b73: + uuid: 3f8348bb-e1d8-485a-9914-dcdf777d9b73 + region: content + configuration: + id: 'views_block:chapitres-block_1' + label: '' + label_display: '0' + provider: views + context_mapping: { } + views_label: '' + items_per_page: none + exposed: { } + weight: 1 + additional: { } + third_party_settings: { } +page: home +selection_criteria: { } +selection_logic: and +static_context: { } diff --git a/config/sync/system.site.yml b/config/sync/system.site.yml index db8da70..13f3956 100644 --- a/config/sync/system.site.yml +++ b/config/sync/system.site.yml @@ -8,7 +8,7 @@ slogan: '' page: 403: '' 404: '' - front: /node/1 + front: /home admin_compact_mode: false weight_select_max: 100 default_langcode: fr diff --git a/config/sync/views.view.block_content.yml b/config/sync/views.view.block_content.yml new file mode 100644 index 0000000..19300c2 --- /dev/null +++ b/config/sync/views.view.block_content.yml @@ -0,0 +1,553 @@ +uuid: b28999fa-6d0e-47b7-9646-9a4fe6965d95 +langcode: fr +status: true +dependencies: + module: + - block_content + - user +_core: + default_config_hash: HfvTcWhiVuvxchoh4DjIkXhKkj9ow2TGgHkLHSvRLq8 +id: block_content +label: 'Blocs de contenu' +module: views +description: 'Trouver et gérer les blocs de contenu.' +tag: default +base_table: block_content_field_data +base_field: id +display: + default: + id: default + display_title: 'Par défaut' + display_plugin: default + position: 0 + display_options: + title: 'Blocs de contenu' + fields: + info: + id: info + table: block_content_field_data + field: info + relationship: none + group_type: group + admin_label: '' + entity_type: null + entity_field: info + plugin_id: field + label: 'Description du bloc' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + type: + id: type + table: block_content_field_data + field: type + relationship: none + group_type: group + admin_label: '' + entity_type: block_content + entity_field: type + plugin_id: field + label: 'Type de bloc' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + changed: + id: changed + table: block_content_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: block_content + entity_field: changed + plugin_id: field + label: 'Mis à jour' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + tooltip: + date_format: long + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + operations: + id: operations + table: block_content + field: operations + relationship: none + group_type: group + admin_label: '' + entity_type: block_content + plugin_id: entity_operations + label: Actions + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + pager: + type: mini + options: + offset: 0 + pagination_heading_level: h4 + items_per_page: 50 + total_pages: null + id: 0 + tags: + next: 'Suivant ›' + previous: '‹ Précédent' + expose: + items_per_page: false + items_per_page_label: 'Éléments par page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- Tout -' + offset: false + offset_label: Décalage + exposed_form: + type: basic + options: + submit_button: Appliquer + reset_button: true + reset_button_label: Réinitialiser + exposed_sorts_label: 'Trier par' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + access: + type: perm + options: + perm: 'access block library' + cache: + type: tag + options: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: "Il n'y a pas de bloc de contenu disponible." + tokenize: false + block_content_listing_empty: + id: block_content_listing_empty + table: block_content + field: block_content_listing_empty + relationship: none + group_type: group + admin_label: '' + entity_type: block_content + plugin_id: block_content_listing_empty + label: '' + empty: true + sorts: { } + arguments: { } + filters: + info: + id: info + table: block_content_field_data + field: info + relationship: none + group_type: group + admin_label: '' + entity_type: block_content + entity_field: info + plugin_id: string + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: info_op + label: 'Description du bloc' + description: '' + use_operator: false + operator: info_op + operator_limit_selection: false + operator_list: { } + identifier: info + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + type: + id: type + table: block_content_field_data + field: type + relationship: none + group_type: group + admin_label: '' + entity_type: block_content + entity_field: type + plugin_id: bundle + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: 'Type de bloc' + description: '' + use_operator: false + operator: type_op + operator_limit_selection: false + operator_list: { } + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + reusable: + id: reusable + table: block_content_field_data + field: reusable + relationship: none + group_type: group + admin_label: '' + entity_type: block_content + entity_field: reusable + plugin_id: boolean + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + columns: + info: info + type: type + changed: changed + operations: operations + default: changed + info: + info: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + type: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + changed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + operations: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + override: true + sticky: false + summary: '' + empty_table: true + caption: '' + description: '' + row: + type: fields + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + header: { } + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + tags: { } + page_1: + id: page_1 + display_title: Page + display_plugin: page + position: 1 + display_options: + display_extenders: { } + path: admin/content/block + menu: + type: tab + title: Blocs + description: 'Créer et modifier les blocs de contenu.' + weight: 0 + menu_name: admin + parent: system.admin_content + context: '0' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + tags: { } diff --git a/config/sync/views.view.chapitres.yml b/config/sync/views.view.chapitres.yml new file mode 100644 index 0000000..fd462bb --- /dev/null +++ b/config/sync/views.view.chapitres.yml @@ -0,0 +1,175 @@ +uuid: 9eece6d3-6ae6-4b98-863a-489d8d76499d +langcode: fr +status: true +dependencies: + config: + - core.entity_view_mode.node.home + - node.type.chapitre + module: + - node + - user +id: chapitres +label: Chapitres +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: Chapitres + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: field + label: '' + exclude: false + alter: + alter_text: false + make_link: false + absolute: false + word_boundary: false + ellipsis: false + strip_tags: false + trim: false + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + pager: + type: none + options: + offset: 0 + items_per_page: null + exposed_form: + type: basic + options: + submit_button: Appliquer + reset_button: false + reset_button_label: Réinitialiser + exposed_sorts_label: 'Trier par' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + empty: { } + sorts: + field_chapitre_num_value: + id: field_chapitre_num_value + table: node__field_chapitre_num + field: field_chapitre_num_value + relationship: none + group_type: group + admin_label: '' + plugin_id: standard + order: ASC + expose: + label: '' + field_identifier: '' + exposed: false + arguments: { } + filters: + status: + id: status + table: node_field_data + field: status + entity_type: node + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + type: + id: type + table: node_field_data + field: type + entity_type: node + entity_field: type + plugin_id: bundle + value: + chapitre: chapitre + style: + type: default + row: + type: 'entity:node' + options: + relationship: none + view_mode: home + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + css_class: views-home-chapitres + header: { } + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - 'user.node_grants:view' + - user.permissions + tags: { } + block_1: + id: block_1 + display_title: Block + display_plugin: block + position: 1 + display_options: + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/layout--onecol.html.twig b/layout--onecol.html.twig new file mode 100644 index 0000000..01d61e0 --- /dev/null +++ b/layout--onecol.html.twig @@ -0,0 +1,26 @@ +{# +/** + * @file + * Default theme implementation to display a one-column layout. + * + * Available variables: + * - in_preview: Whether the plugin is being rendered in preview mode. + * - content: The content for this layout. + * - attributes: HTML attributes for the layout