From de59f46f5a3858464e8805b349dd35e10441a30f Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 5 Nov 2024 15:41:05 +0100 Subject: [PATCH] partenaires contenu type --- ...field_override.node.partenaire.promote.yml | 22 +++ ...y_form_display.node.partenaire.default.yml | 168 ++++++++++++++++++ ...y_view_display.node.partenaire.default.yml | 68 +++++++ ...ty_view_display.node.partenaire.teaser.yml | 39 ++++ .../sync/field.field.node.partenaire.body.yml | 24 +++ ...field.field.node.partenaire.field_lien.yml | 23 +++ ...field.field.node.partenaire.field_logo.yml | 41 +++++ ...field.field.node.partenaire.field_poid.yml | 25 +++ config/sync/field.storage.node.field_lien.yml | 19 ++ config/sync/field.storage.node.field_logo.yml | 30 ++++ config/sync/field.storage.node.field_poid.yml | 20 +++ ...guage.content_settings.node.partenaire.yml | 11 ++ config/sync/node.type.partenaire.yml | 18 ++ .../sync/rest.resource.entity.path_alias.yml | 18 -- config/sync/user.role.editor.yml | 7 + config/sync/views.view.etapes.yml | 2 +- 16 files changed, 516 insertions(+), 19 deletions(-) create mode 100644 config/sync/core.base_field_override.node.partenaire.promote.yml create mode 100644 config/sync/core.entity_form_display.node.partenaire.default.yml create mode 100644 config/sync/core.entity_view_display.node.partenaire.default.yml create mode 100644 config/sync/core.entity_view_display.node.partenaire.teaser.yml create mode 100644 config/sync/field.field.node.partenaire.body.yml create mode 100644 config/sync/field.field.node.partenaire.field_lien.yml create mode 100644 config/sync/field.field.node.partenaire.field_logo.yml create mode 100644 config/sync/field.field.node.partenaire.field_poid.yml create mode 100644 config/sync/field.storage.node.field_lien.yml create mode 100644 config/sync/field.storage.node.field_logo.yml create mode 100644 config/sync/field.storage.node.field_poid.yml create mode 100644 config/sync/language.content_settings.node.partenaire.yml create mode 100644 config/sync/node.type.partenaire.yml delete mode 100644 config/sync/rest.resource.entity.path_alias.yml diff --git a/config/sync/core.base_field_override.node.partenaire.promote.yml b/config/sync/core.base_field_override.node.partenaire.promote.yml new file mode 100644 index 0000000..ede8ad4 --- /dev/null +++ b/config/sync/core.base_field_override.node.partenaire.promote.yml @@ -0,0 +1,22 @@ +uuid: ff7856c2-9f90-431a-bc17-e1dee92998cd +langcode: fr +status: true +dependencies: + config: + - node.type.partenaire +id: node.partenaire.promote +field_name: promote +entity_type: node +bundle: partenaire +label: "Promu en page d'accueil" +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: Activé + off_label: Désactivé +field_type: boolean diff --git a/config/sync/core.entity_form_display.node.partenaire.default.yml b/config/sync/core.entity_form_display.node.partenaire.default.yml new file mode 100644 index 0000000..f23133a --- /dev/null +++ b/config/sync/core.entity_form_display.node.partenaire.default.yml @@ -0,0 +1,168 @@ +uuid: ccdbf66a-e457-4c55-aa44-cbf9320d1a80 +langcode: fr +status: true +dependencies: + config: + - field.field.node.partenaire.body + - field.field.node.partenaire.field_lien + - field.field.node.partenaire.field_logo + - field.field.node.partenaire.field_poid + - image.style.thumbnail + - node.type.partenaire + module: + - field_group + - image + - link + - text +third_party_settings: + field_group: + group_tabs: + children: + - group_texte + - group_lien + - group_logo + 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_details: + children: + - field_poid + - status + - langcode + label: Details + region: content + parent_name: '' + weight: 6 + format_type: details_sidebar + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + open: true + description: '' + required_fields: true + weight: -100 + group_texte: + children: + - body + label: Texte + region: content + parent_name: group_tabs + weight: 20 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true + group_lien: + children: + - field_lien + label: Lien + region: content + parent_name: group_tabs + weight: 21 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true + group_logo: + children: + - field_logo + label: Logo + region: content + parent_name: group_tabs + weight: 22 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true +id: node.partenaire.default +targetEntityType: node +bundle: partenaire +mode: default +content: + body: + type: text_textarea_with_summary + weight: 3 + region: content + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + show_summary: false + third_party_settings: { } + field_lien: + type: link_default + weight: 4 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } + field_logo: + type: image_image + weight: 5 + region: content + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + field_poid: + type: number + weight: 12 + region: content + settings: + placeholder: '' + third_party_settings: { } + langcode: + type: language_select + weight: 14 + region: content + settings: + include_locked: true + third_party_settings: { } + status: + type: boolean_checkbox + weight: 13 + region: content + settings: + display_label: true + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + created: true + path: true + promote: true + sticky: true + uid: true diff --git a/config/sync/core.entity_view_display.node.partenaire.default.yml b/config/sync/core.entity_view_display.node.partenaire.default.yml new file mode 100644 index 0000000..ac0240c --- /dev/null +++ b/config/sync/core.entity_view_display.node.partenaire.default.yml @@ -0,0 +1,68 @@ +uuid: 9dce0b05-0136-4559-a7a1-88de544b69bb +langcode: fr +status: true +dependencies: + config: + - field.field.node.partenaire.body + - field.field.node.partenaire.field_lien + - field.field.node.partenaire.field_logo + - field.field.node.partenaire.field_poid + - node.type.partenaire + module: + - image + - link + - text + - user +id: node.partenaire.default +targetEntityType: node +bundle: partenaire +mode: default +content: + body: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 101 + region: content + field_lien: + type: link + label: above + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 102 + region: content + field_logo: + type: image + label: above + settings: + image_link: '' + image_style: '' + image_loading: + attribute: lazy + third_party_settings: { } + weight: 103 + region: content + field_poid: + type: number_integer + label: above + settings: + thousand_separator: '' + prefix_suffix: true + third_party_settings: { } + weight: 104 + region: content + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + footnotes_group: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.partenaire.teaser.yml b/config/sync/core.entity_view_display.node.partenaire.teaser.yml new file mode 100644 index 0000000..e6163ac --- /dev/null +++ b/config/sync/core.entity_view_display.node.partenaire.teaser.yml @@ -0,0 +1,39 @@ +uuid: c327b30d-de29-42e5-8f97-4ff691c2b8b1 +langcode: fr +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.partenaire.body + - field.field.node.partenaire.field_lien + - field.field.node.partenaire.field_logo + - field.field.node.partenaire.field_poid + - node.type.partenaire + module: + - text + - user +id: node.partenaire.teaser +targetEntityType: node +bundle: partenaire +mode: teaser +content: + body: + type: text_summary_or_trimmed + label: hidden + settings: + trim_length: 600 + third_party_settings: { } + weight: 101 + region: content + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_lien: true + field_logo: true + field_poid: true + footnotes_group: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/field.field.node.partenaire.body.yml b/config/sync/field.field.node.partenaire.body.yml new file mode 100644 index 0000000..67f33de --- /dev/null +++ b/config/sync/field.field.node.partenaire.body.yml @@ -0,0 +1,24 @@ +uuid: e3dbc022-9c99-46c2-a3ff-7fb1ef23398a +langcode: fr +status: true +dependencies: + config: + - field.storage.node.body + - node.type.partenaire + module: + - text +id: node.partenaire.body +field_name: body +entity_type: node +bundle: partenaire +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true + required_summary: false + allowed_formats: { } +field_type: text_with_summary diff --git a/config/sync/field.field.node.partenaire.field_lien.yml b/config/sync/field.field.node.partenaire.field_lien.yml new file mode 100644 index 0000000..1829991 --- /dev/null +++ b/config/sync/field.field.node.partenaire.field_lien.yml @@ -0,0 +1,23 @@ +uuid: cc07413f-fee9-4956-a982-450eaf619bd8 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_lien + - node.type.partenaire + module: + - link +id: node.partenaire.field_lien +field_name: field_lien +entity_type: node +bundle: partenaire +label: Lien +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.partenaire.field_logo.yml b/config/sync/field.field.node.partenaire.field_logo.yml new file mode 100644 index 0000000..06955d3 --- /dev/null +++ b/config/sync/field.field.node.partenaire.field_logo.yml @@ -0,0 +1,41 @@ +uuid: 2a26fa4a-16f8-41e5-851c-8fb92604c38a +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_logo + - node.type.partenaire + module: + - image +id: node.partenaire.field_logo +field_name: field_logo +entity_type: node +bundle: partenaire +label: Logo +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: 'png gif jpg jpeg webp' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + caption: '' + caption_field: 0 + caption_field_required: 0 +field_type: image diff --git a/config/sync/field.field.node.partenaire.field_poid.yml b/config/sync/field.field.node.partenaire.field_poid.yml new file mode 100644 index 0000000..7862d59 --- /dev/null +++ b/config/sync/field.field.node.partenaire.field_poid.yml @@ -0,0 +1,25 @@ +uuid: 545b0a77-0139-468e-b882-105b165065c9 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_poid + - node.type.partenaire +id: node.partenaire.field_poid +field_name: field_poid +entity_type: node +bundle: partenaire +label: Poid +description: '' +required: false +translatable: false +default_value: + - + value: 0 +default_value_callback: '' +settings: + min: -20 + max: 20 + prefix: '' + suffix: '' +field_type: integer diff --git a/config/sync/field.storage.node.field_lien.yml b/config/sync/field.storage.node.field_lien.yml new file mode 100644 index 0000000..79c86bd --- /dev/null +++ b/config/sync/field.storage.node.field_lien.yml @@ -0,0 +1,19 @@ +uuid: 89c178d2-1129-49ce-a5be-af5d56c80f25 +langcode: fr +status: true +dependencies: + module: + - link + - node +id: node.field_lien +field_name: field_lien +entity_type: node +type: link +settings: { } +module: link +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_logo.yml b/config/sync/field.storage.node.field_logo.yml new file mode 100644 index 0000000..dc4b754 --- /dev/null +++ b/config/sync/field.storage.node.field_logo.yml @@ -0,0 +1,30 @@ +uuid: 001d725f-a9c0-43f9-91f6-cfbe6d210cef +langcode: fr +status: true +dependencies: + module: + - file + - image + - node +id: node.field_logo +field_name: field_logo +entity_type: node +type: image +settings: + target_type: file + display_field: false + display_default: false + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null +module: image +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_poid.yml b/config/sync/field.storage.node.field_poid.yml new file mode 100644 index 0000000..cb0c0db --- /dev/null +++ b/config/sync/field.storage.node.field_poid.yml @@ -0,0 +1,20 @@ +uuid: c40e79f3-18de-41c2-a2f6-563d379fc799 +langcode: fr +status: true +dependencies: + module: + - node +id: node.field_poid +field_name: field_poid +entity_type: node +type: integer +settings: + unsigned: false + size: normal +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/language.content_settings.node.partenaire.yml b/config/sync/language.content_settings.node.partenaire.yml new file mode 100644 index 0000000..3ebe7d6 --- /dev/null +++ b/config/sync/language.content_settings.node.partenaire.yml @@ -0,0 +1,11 @@ +uuid: ebcdeab0-693f-478c-b970-6cade5d2e124 +langcode: fr +status: true +dependencies: + config: + - node.type.partenaire +id: node.partenaire +target_entity_type_id: node +target_bundle: partenaire +default_langcode: site_default +language_alterable: false diff --git a/config/sync/node.type.partenaire.yml b/config/sync/node.type.partenaire.yml new file mode 100644 index 0000000..19600db --- /dev/null +++ b/config/sync/node.type.partenaire.yml @@ -0,0 +1,18 @@ +uuid: 3a2701d9-4f1f-48f8-af75-7d4b87e63015 +langcode: fr +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Partenaire +type: partenaire +description: null +help: null +new_revision: true +preview_mode: 0 +display_submitted: false diff --git a/config/sync/rest.resource.entity.path_alias.yml b/config/sync/rest.resource.entity.path_alias.yml deleted file mode 100644 index 5d44279..0000000 --- a/config/sync/rest.resource.entity.path_alias.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: f904b753-75c5-477e-bd9c-7259f9bfdf9b -langcode: fr -status: false -dependencies: - module: - - path_alias - - serialization - - user -id: entity.path_alias -plugin_id: 'entity:path_alias' -granularity: resource -configuration: - methods: - - GET - formats: - - json - authentication: - - cookie diff --git a/config/sync/user.role.editor.yml b/config/sync/user.role.editor.yml index 2bd2625..7bb94e3 100644 --- a/config/sync/user.role.editor.yml +++ b/config/sync/user.role.editor.yml @@ -8,6 +8,7 @@ dependencies: - filter.format.wysiwyg - node.type.etape - node.type.gallerie_photo + - node.type.partenaire - node.type.static - taxonomy.vocabulary.saisons - taxonomy.vocabulary.thematiques @@ -33,27 +34,33 @@ permissions: - 'change own username' - 'create etape content' - 'create gallerie_photo content' + - 'create partenaire content' - 'create terms in saisons' - 'create terms in thematiques' - 'delete etape revisions' - 'delete gallerie_photo revisions' + - 'delete partenaire revisions' - 'delete static revisions' - 'delete terms in saisons' - 'delete terms in thematiques' - 'edit any etape content' - 'edit any gallerie_photo content' + - 'edit any partenaire content' - 'edit any static content' + - 'edit own partenaire content' - 'edit own static content' - 'edit terms in saisons' - 'edit terms in thematiques' - 'revert etape revisions' - 'revert gallerie_photo revisions' + - 'revert partenaire revisions' - 'revert static revisions' - 'use text format footnote' - 'use text format simple' - 'use text format wysiwyg' - 'view etape revisions' - 'view gallerie_photo revisions' + - 'view partenaire revisions' - 'view static revisions' - 'view the administration theme' - 'view unpublished paragraphs' diff --git a/config/sync/views.view.etapes.yml b/config/sync/views.view.etapes.yml index 352b3da..9dc6b62 100644 --- a/config/sync/views.view.etapes.yml +++ b/config/sync/views.view.etapes.yml @@ -269,7 +269,7 @@ display: popupAnchor: x: '' 'y': '' - html: "
\r\n
\r\n
\r\n
[node:url]
\r\n
[node:field_couleur]
" + html: "
\r\n
\r\n
\r\n
{{ nid }}
\r\n
{{ field_couleur }}
" html_class: 'leaflet-map-divicon ' circle_marker_options: '{"radius":100,"color":"red","fillColor":"#f03","fillOpacity":0.5}' leaflet_markercluster: