From bddb4b2088ad6da76bc9a701dbca4aae446c6f26 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 10 Oct 2024 16:05:22 +0200 Subject: [PATCH] link & doc fields in statics --- ...ntity_form_display.node.static.default.yml | 72 ++++++++++++++++++- ...ntity_view_display.node.static.default.yml | 24 +++++++ .../field.field.node.static.field_liens.yml | 23 ++++++ ...field.node.static.field_pieces_jointes.yml | 27 +++++++ 4 files changed, 144 insertions(+), 2 deletions(-) create mode 100644 config/sync/field.field.node.static.field_liens.yml create mode 100644 config/sync/field.field.node.static.field_pieces_jointes.yml 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 fe4607c..7679ae4 100644 --- a/config/sync/core.entity_form_display.node.static.default.yml +++ b/config/sync/core.entity_form_display.node.static.default.yml @@ -3,13 +3,17 @@ langcode: fr status: true dependencies: config: + - field.field.node.static.field_liens - field.field.node.static.field_parties_static + - field.field.node.static.field_pieces_jointes - field.field.node.static.field_vignette - image.style.thumbnail - node.type.static module: - field_group + - file - image + - link - paragraphs - path third_party_settings: @@ -22,7 +26,7 @@ third_party_settings: label: Details region: content parent_name: '' - weight: 4 + weight: 3 format_type: details_sidebar format_settings: classes: '' @@ -33,14 +37,71 @@ third_party_settings: description: '' required_fields: true weight: -100 + group_tabs: + children: + - group_parties + - group_extra + label: Tabs + region: content + parent_name: '' + weight: 1 + format_type: tabs + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + direction: horizontal + width_breakpoint: 640 + group_parties: + children: + - field_parties_static + label: Parties + region: content + parent_name: group_tabs + weight: 11 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: open + description: '' + required_fields: true + group_extra: + children: + - field_pieces_jointes + - field_liens + label: Extra + region: content + parent_name: group_tabs + weight: 12 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true id: node.static.default targetEntityType: node bundle: static mode: default content: + field_liens: + type: link_default + weight: 5 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } field_parties_static: type: paragraphs - weight: 1 + weight: 2 region: content settings: title: Paragraphe @@ -56,6 +117,13 @@ content: collapse_edit_all: collapse_edit_all duplicate: duplicate third_party_settings: { } + field_pieces_jointes: + type: file_generic + weight: 4 + region: content + settings: + progress_indicator: throbber + third_party_settings: { } field_vignette: type: image_image weight: 4 diff --git a/config/sync/core.entity_view_display.node.static.default.yml b/config/sync/core.entity_view_display.node.static.default.yml index 0e04257..dc35c4d 100644 --- a/config/sync/core.entity_view_display.node.static.default.yml +++ b/config/sync/core.entity_view_display.node.static.default.yml @@ -3,18 +3,34 @@ langcode: fr status: true dependencies: config: + - field.field.node.static.field_liens - field.field.node.static.field_parties_static + - field.field.node.static.field_pieces_jointes - field.field.node.static.field_vignette - node.type.static module: - entity_reference_revisions + - file - image + - link - user id: node.static.default targetEntityType: node bundle: static mode: default content: + field_liens: + type: link + label: above + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 12 + region: content field_parties_static: type: entity_reference_revisions_entity_view label: above @@ -24,6 +40,14 @@ content: third_party_settings: { } weight: 101 region: content + field_pieces_jointes: + type: file_default + label: above + settings: + use_description_as_link_text: true + third_party_settings: { } + weight: 11 + region: content field_vignette: type: image label: visually_hidden diff --git a/config/sync/field.field.node.static.field_liens.yml b/config/sync/field.field.node.static.field_liens.yml new file mode 100644 index 0000000..7d24a61 --- /dev/null +++ b/config/sync/field.field.node.static.field_liens.yml @@ -0,0 +1,23 @@ +uuid: d627e113-db8f-4428-b51e-19ca6c0b9cef +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_liens + - node.type.static + module: + - link +id: node.static.field_liens +field_name: field_liens +entity_type: node +bundle: static +label: Liens +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + title: 1 + link_type: 17 +field_type: link diff --git a/config/sync/field.field.node.static.field_pieces_jointes.yml b/config/sync/field.field.node.static.field_pieces_jointes.yml new file mode 100644 index 0000000..56d5cf5 --- /dev/null +++ b/config/sync/field.field.node.static.field_pieces_jointes.yml @@ -0,0 +1,27 @@ +uuid: 8b4a2ef4-5f72-42e3-b7a6-08c00cd62caa +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_pieces_jointes + - node.type.static + module: + - file +id: node.static.field_pieces_jointes +field_name: field_pieces_jointes +entity_type: node +bundle: static +label: 'Pièces jointes' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:file' + handler_settings: { } + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'pdf doc docx odt zip' + max_filesize: '' + description_field: true +field_type: file