From 315635d20b24f286b7d3107298bb7a0d5ca72d78 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 19 Jun 2023 11:38:21 +0200 Subject: [PATCH] new home --- ...ntity_form_display.node.projet.default.yml | 11 +- ...entity_view_display.node.static.teaser.yml | 15 +- ...ger.page_variant.home-panels_variant-0.yml | 66 +++-- config/sync/user.role.editeur.yml | 2 + config/sync/views.view.projets.yml | 232 ++++++++++++++++++ 5 files changed, 277 insertions(+), 49 deletions(-) diff --git a/config/sync/core.entity_form_display.node.projet.default.yml b/config/sync/core.entity_form_display.node.projet.default.yml index c219842..191d48f 100644 --- a/config/sync/core.entity_form_display.node.projet.default.yml +++ b/config/sync/core.entity_form_display.node.projet.default.yml @@ -68,6 +68,7 @@ third_party_settings: - status - field_incube - field_neuf_rehabilitation + - promote - field_encours_fini label: Details region: content @@ -143,7 +144,7 @@ content: third_party_settings: { } field_encours_fini: type: options_select - weight: 3 + weight: 4 region: content settings: { } third_party_settings: { } @@ -232,6 +233,13 @@ content: form_display_mode: default default_paragraph_type: '' third_party_settings: { } + promote: + type: boolean_checkbox + weight: 3 + region: content + settings: + display_label: true + third_party_settings: { } status: type: boolean_checkbox weight: 0 @@ -252,7 +260,6 @@ hidden: created: true langcode: true path: true - promote: true sticky: true uid: true url_redirects: 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 index 9967cf4..2d90588 100644 --- a/config/sync/core.entity_view_display.node.static.teaser.yml +++ b/config/sync/core.entity_view_display.node.static.teaser.yml @@ -20,7 +20,6 @@ dependencies: - image_delta_formatter - manage_display - text - - video_embed_field _core: default_config_hash: oGSMA6gtfWJ1AlOJQfaQ3Qpi7ZarWaHqInUX9DaJLzo id: node.static.teaser @@ -46,21 +45,10 @@ content: third_party_settings: { } weight: 0 region: content - field_videos: - type: video_embed_field_video - label: visually_hidden - settings: - autoplay: true - responsive: true - width: 854 - height: 480 - third_party_settings: { } - weight: 3 - region: content links: settings: { } third_party_settings: { } - weight: 4 + weight: 3 region: content title: type: title @@ -81,6 +69,7 @@ hidden: field_personnes: true field_ress: true field_textes: true + field_videos: true langcode: true search_api_excerpt: true uid: true diff --git a/config/sync/page_manager.page_variant.home-panels_variant-0.yml b/config/sync/page_manager.page_variant.home-panels_variant-0.yml index fd42091..fb70843 100644 --- a/config/sync/page_manager.page_variant.home-panels_variant-0.yml +++ b/config/sync/page_manager.page_variant.home-panels_variant-0.yml @@ -6,13 +6,12 @@ dependencies: - page_manager.page.home - views.view.actus_blocks_pages - views.view.home_nodes + - views.view.projets content: - - 'block_content:link:1bb9024b-d95f-4137-894c-362abf10a483' - 'block_content:link:3ee1f633-aaa7-4b4c-a42a-02206e26d3a2' - - 'block_content:link:9448ca2a-90e3-488b-89cf-8ec6a986a9ca' + - 'block_content:link:4c5690e5-aa83-4fcc-8594-8110c1417db8' module: - block_content - - config_pages - panels - views id: home-panels_variant-0 @@ -34,7 +33,7 @@ variant_settings: views_label: '' items_per_page: none region: content - weight: 1 + weight: -2 uuid: 15d7b769-d111-4662-8753-75c6a6ac7491 1aa3934c-9f4d-4f46-b01c-646650c1f5d7: id: 'block_content:3ee1f633-aaa7-4b4c-a42a-02206e26d3a2' @@ -46,7 +45,7 @@ variant_settings: view_mode: full context_mapping: { } region: content - weight: 2 + weight: -1 uuid: 1aa3934c-9f4d-4f46-b01c-646650c1f5d7 43740d19-3425-40db-986a-bde244d94ae5: id: 'views_block:home_nodes-block_2' @@ -57,23 +56,33 @@ variant_settings: views_label: '' items_per_page: none region: content - weight: 3 - uuid: 43740d19-3425-40db-986a-bde244d94ae5 - da4a8f73-dc0f-45db-8120-dcd819a6ea0b: - id: 'block_content:1bb9024b-d95f-4137-894c-362abf10a483' - label: 'Faq link' - label_display: '0' - provider: block_content - status: true - info: '' - view_mode: full - context_mapping: { } - region: content weight: 0 - uuid: da4a8f73-dc0f-45db-8120-dcd819a6ea0b - 55eebbc0-0094-4a1f-be54-ec7cd3ea860c: - id: 'block_content:9448ca2a-90e3-488b-89cf-8ec6a986a9ca' - label: candidature + uuid: 43740d19-3425-40db-986a-bde244d94ae5 + 1aa7ec9d-1417-4ab3-b25d-a7112d8cd9cd: + id: 'views_block:projets-block_2' + label: '' + label_display: '0' + provider: views + context_mapping: { } + views_label: '' + items_per_page: none + region: content + weight: 3 + uuid: 1aa7ec9d-1417-4ab3-b25d-a7112d8cd9cd + d31856ee-315c-49f9-8264-aa5be883ff24: + id: 'views_block:projets-block_4' + label: '' + label_display: visible + provider: views + context_mapping: { } + views_label: '' + items_per_page: none + region: content + weight: 1 + uuid: d31856ee-315c-49f9-8264-aa5be883ff24 + 4035751c-7b56-47ca-9a19-d25ecb8f7873: + id: 'block_content:4c5690e5-aa83-4fcc-8594-8110c1417db8' + label: 'Home projets laureats link' label_display: '0' provider: block_content status: true @@ -81,19 +90,8 @@ variant_settings: view_mode: full context_mapping: { } region: content - weight: -1 - uuid: 55eebbc0-0094-4a1f-be54-ec7cd3ea860c - 97f7bd27-40a9-46f6-891f-c3b790c666d1: - config_page_type: home_front - config_page_view_mode: full - id: config_pages_block - label: 'ConfigPages Block' - label_display: '0' - provider: config_pages - context_mapping: { } - region: content - weight: -2 - uuid: 97f7bd27-40a9-46f6-891f-c3b790c666d1 + weight: 2 + uuid: 4035751c-7b56-47ca-9a19-d25ecb8f7873 page_title: '' layout: layout_onecol layout_settings: diff --git a/config/sync/user.role.editeur.yml b/config/sync/user.role.editeur.yml index 73807b0..1bbed36 100644 --- a/config/sync/user.role.editeur.yml +++ b/config/sync/user.role.editeur.yml @@ -12,6 +12,7 @@ dependencies: - node.type.static module: - config_pages + - content_lock - node - system - toolbar @@ -26,6 +27,7 @@ permissions: - 'access toolbar' - 'access webform submission user' - 'administer nodes' + - 'break content lock' - 'create actualite content' - 'create offre_de_service content' - 'create partenaires_logo_footer_ content' diff --git a/config/sync/views.view.projets.yml b/config/sync/views.view.projets.yml index 64da188..2de2263 100644 --- a/config/sync/views.view.projets.yml +++ b/config/sync/views.view.projets.yml @@ -1426,3 +1426,235 @@ display: tags: - 'config:field.storage.node.field_geofield' - 'config:field.storage.node.field_incube' + block_4: + id: block_4 + display_title: 'Projets Home Block' + display_plugin: block + position: 1 + display_options: + title: 'Zoom sur les projets' + 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: '' + operator_limit_selection: false + operator_list: { } + type: + id: type + table: node_field_data + field: type + entity_type: node + entity_field: type + plugin_id: bundle + value: + projet: projet + group: 1 + expose: + operator_limit_selection: false + operator_list: { } + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: string + operator: contains + value: '' + group: 1 + exposed: false + expose: + operator_id: title_op + label: Titre + description: '' + use_operator: false + operator: title_op + operator_limit_selection: false + operator_list: { } + identifier: title + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + admin: '0' + root: '0' + user: '0' + editeur: '0' + placeholder: '' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + promote: + id: promote + table: node_field_data + field: promote + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: promote + 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: { } + filter_groups: + operator: AND + groups: + 1: AND + style: + type: default + options: + row_class: '' + default_row_class: true + uses_fields: false + row: + type: 'entity:node' + options: + view_mode: teaser + defaults: + title: false + style: false + row: false + filters: false + filter_groups: false + display_description: '' + display_extenders: + views_ef_fieldset: + views_ef_fieldset: + enabled: 0 + options: + sort: + root: + container_type: details + title: Filtres + description: '' + open: '1' + weight: '0' + id: root + pid: '' + depth: '0' + type: container + field_incube_value: + weight: '-8' + id: field_incube_value + pid: root + depth: '1' + type: filter + field_neuf_rehabilitation_value: + weight: '-8' + id: field_neuf_rehabilitation_value + pid: root + depth: '1' + type: filter + field_encours_fini_value: + weight: '-8' + id: field_encours_fini_value + pid: root + depth: '1' + type: filter + submit: + weight: '-8' + id: submit + pid: root + depth: '1' + type: buttons + container-0: + container_type: details + title: 'Container 0' + description: '' + weight: '-7' + open: 0 + id: container-0 + pid: root + depth: '1' + type: container + container-1: + container_type: details + title: 'Container 1' + description: '' + weight: '-6' + open: 0 + id: container-1 + pid: root + depth: '1' + type: container + container-2: + container_type: details + title: 'Container 2' + description: '' + weight: '-5' + open: 0 + id: container-2 + pid: root + depth: '1' + type: container + container-3: + container_type: details + title: 'Container 3' + description: '' + weight: '-4' + open: 0 + id: container-3 + pid: root + depth: '1' + type: container + block_description: 'Projets home block' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_geofield' + - 'config:field.storage.node.field_incube'