From 89cba88747119890f822e020ea01c30cd1b9d48e Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 20 Mar 2023 15:52:46 +0100 Subject: [PATCH] added 'structure' taxonomy to groups and users --- ...ty_form_display.group.bourgeon.default.yml | 21 ++++++++++++- ....entity_form_display.user.user.default.yml | 20 +++++++++++++ ...re.entity_form_display.user.user.group.yml | 11 +++++++ ...ty_view_display.group.bourgeon.default.yml | 9 ++++++ ....entity_view_display.user.user.default.yml | 29 ++++++++++++++++++ ...d.field.group.bourgeon.field_structure.yml | 29 ++++++++++++++++++ .../field.field.user.user.field_strucure.yml | 30 +++++++++++++++++++ .../field.storage.group.field_structure.yml | 20 +++++++++++++ .../field.storage.user.field_strucure.yml | 20 +++++++++++++ ...ntent_settings.taxonomy_term.structure.yml | 11 +++++++ .../sync/taxonomy.vocabulary.structure.yml | 8 +++++ 11 files changed, 207 insertions(+), 1 deletion(-) create mode 100644 src/config/sync/core.entity_view_display.user.user.default.yml create mode 100644 src/config/sync/field.field.group.bourgeon.field_structure.yml create mode 100644 src/config/sync/field.field.user.user.field_strucure.yml create mode 100644 src/config/sync/field.storage.group.field_structure.yml create mode 100644 src/config/sync/field.storage.user.field_strucure.yml create mode 100644 src/config/sync/language.content_settings.taxonomy_term.structure.yml create mode 100644 src/config/sync/taxonomy.vocabulary.structure.yml diff --git a/src/config/sync/core.entity_form_display.group.bourgeon.default.yml b/src/config/sync/core.entity_form_display.group.bourgeon.default.yml index 35d8aa4..e3a837e 100644 --- a/src/config/sync/core.entity_form_display.group.bourgeon.default.yml +++ b/src/config/sync/core.entity_form_display.group.bourgeon.default.yml @@ -4,8 +4,10 @@ status: true dependencies: config: - field.field.group.bourgeon.field_description + - field.field.group.bourgeon.field_structure - group.type.bourgeon module: + - autocomplete_deluxe - field_group - text third_party_settings: @@ -33,7 +35,7 @@ mode: default content: field_description: type: text_textarea_with_summary - weight: 1 + weight: 2 region: content settings: rows: 9 @@ -41,6 +43,23 @@ content: placeholder: '' show_summary: false third_party_settings: { } + field_structure: + type: autocomplete_deluxe + weight: 1 + region: content + settings: + match_operator: CONTAINS + autocomplete_route_name: autocomplete_deluxe.autocomplete + size: 60 + selection_handler: default + limit: 10 + min_length: 0 + delimiter: '' + not_found_message_allow: true + not_found_message: 'The term ''@term'' will be added' + new_terms: true + no_empty_message: 'No terms could be found. Please type in order to add a new term.' + third_party_settings: { } label: type: string_textfield weight: 0 diff --git a/src/config/sync/core.entity_form_display.user.user.default.yml b/src/config/sync/core.entity_form_display.user.user.default.yml index 82e40de..89502ef 100644 --- a/src/config/sync/core.entity_form_display.user.user.default.yml +++ b/src/config/sync/core.entity_form_display.user.user.default.yml @@ -2,7 +2,10 @@ uuid: 2831e53a-5b05-4e79-bd7c-9f796f246b67 langcode: fr status: true dependencies: + config: + - field.field.user.user.field_strucure module: + - autocomplete_deluxe - user id: user.user.default targetEntityType: user @@ -14,6 +17,23 @@ content: region: content settings: { } third_party_settings: { } + field_strucure: + type: autocomplete_deluxe + weight: 2 + region: content + settings: + match_operator: CONTAINS + autocomplete_route_name: autocomplete_deluxe.autocomplete + size: 60 + selection_handler: default + limit: 10 + min_length: 0 + delimiter: '' + not_found_message_allow: true + not_found_message: 'The term ''@term'' will be added' + new_terms: true + no_empty_message: 'No terms could be found. Please type in order to add a new term.' + third_party_settings: { } hidden: contact: true langcode: true diff --git a/src/config/sync/core.entity_form_display.user.user.group.yml b/src/config/sync/core.entity_form_display.user.user.group.yml index 6c9cb6a..65e707b 100644 --- a/src/config/sync/core.entity_form_display.user.user.group.yml +++ b/src/config/sync/core.entity_form_display.user.user.group.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - core.entity_form_mode.user.group + - field.field.user.user.field_strucure module: - user id: user.user.group @@ -16,6 +17,16 @@ content: region: content settings: { } third_party_settings: { } + field_strucure: + type: entity_reference_autocomplete + weight: 1 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } hidden: contact: true langcode: true diff --git a/src/config/sync/core.entity_view_display.group.bourgeon.default.yml b/src/config/sync/core.entity_view_display.group.bourgeon.default.yml index 4e0ba7a..9d18a77 100644 --- a/src/config/sync/core.entity_view_display.group.bourgeon.default.yml +++ b/src/config/sync/core.entity_view_display.group.bourgeon.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.group.bourgeon.field_description + - field.field.group.bourgeon.field_structure - group.type.bourgeon module: - text @@ -19,6 +20,14 @@ content: third_party_settings: { } weight: -4 region: content + field_structure: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: -3 + region: content label: type: string label: hidden diff --git a/src/config/sync/core.entity_view_display.user.user.default.yml b/src/config/sync/core.entity_view_display.user.user.default.yml new file mode 100644 index 0000000..d0a64c7 --- /dev/null +++ b/src/config/sync/core.entity_view_display.user.user.default.yml @@ -0,0 +1,29 @@ +uuid: 0a917211-651f-47bf-b124-0097e1d028dd +langcode: fr +status: true +dependencies: + config: + - field.field.user.user.field_strucure + module: + - user +id: user.user.default +targetEntityType: user +bundle: user +mode: default +content: + field_strucure: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 6 + region: content + member_for: + settings: { } + third_party_settings: { } + weight: 5 + region: content +hidden: + langcode: true + search_api_excerpt: true diff --git a/src/config/sync/field.field.group.bourgeon.field_structure.yml b/src/config/sync/field.field.group.bourgeon.field_structure.yml new file mode 100644 index 0000000..519eb05 --- /dev/null +++ b/src/config/sync/field.field.group.bourgeon.field_structure.yml @@ -0,0 +1,29 @@ +uuid: 6394d302-ad58-4794-8132-22c4890433c4 +langcode: fr +status: true +dependencies: + config: + - field.storage.group.field_structure + - group.type.bourgeon + - taxonomy.vocabulary.structure +id: group.bourgeon.field_structure +field_name: field_structure +entity_type: group +bundle: bourgeon +label: Structure +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + structure: structure + sort: + field: name + direction: asc + auto_create: true + auto_create_bundle: '' +field_type: entity_reference diff --git a/src/config/sync/field.field.user.user.field_strucure.yml b/src/config/sync/field.field.user.user.field_strucure.yml new file mode 100644 index 0000000..cfdbba8 --- /dev/null +++ b/src/config/sync/field.field.user.user.field_strucure.yml @@ -0,0 +1,30 @@ +uuid: 7f577961-9b7e-487e-89de-44259f6deed4 +langcode: fr +status: true +dependencies: + config: + - field.storage.user.field_strucure + - taxonomy.vocabulary.structure + module: + - user +id: user.user.field_strucure +field_name: field_strucure +entity_type: user +bundle: user +label: Strucure +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + structure: structure + sort: + field: name + direction: asc + auto_create: true + auto_create_bundle: '' +field_type: entity_reference diff --git a/src/config/sync/field.storage.group.field_structure.yml b/src/config/sync/field.storage.group.field_structure.yml new file mode 100644 index 0000000..dfcfa5b --- /dev/null +++ b/src/config/sync/field.storage.group.field_structure.yml @@ -0,0 +1,20 @@ +uuid: 2e13e690-a475-496d-968c-657c954f3479 +langcode: fr +status: true +dependencies: + module: + - group + - taxonomy +id: group.field_structure +field_name: field_structure +entity_type: group +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/src/config/sync/field.storage.user.field_strucure.yml b/src/config/sync/field.storage.user.field_strucure.yml new file mode 100644 index 0000000..d15aec9 --- /dev/null +++ b/src/config/sync/field.storage.user.field_strucure.yml @@ -0,0 +1,20 @@ +uuid: 6976ebed-5d08-43b2-bfd8-789ade275282 +langcode: fr +status: true +dependencies: + module: + - taxonomy + - user +id: user.field_strucure +field_name: field_strucure +entity_type: user +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/src/config/sync/language.content_settings.taxonomy_term.structure.yml b/src/config/sync/language.content_settings.taxonomy_term.structure.yml new file mode 100644 index 0000000..77943c4 --- /dev/null +++ b/src/config/sync/language.content_settings.taxonomy_term.structure.yml @@ -0,0 +1,11 @@ +uuid: 2f91190a-5dc3-47ba-b6ea-113c25d39eb0 +langcode: fr +status: true +dependencies: + config: + - taxonomy.vocabulary.structure +id: taxonomy_term.structure +target_entity_type_id: taxonomy_term +target_bundle: structure +default_langcode: site_default +language_alterable: false diff --git a/src/config/sync/taxonomy.vocabulary.structure.yml b/src/config/sync/taxonomy.vocabulary.structure.yml new file mode 100644 index 0000000..bb35dff --- /dev/null +++ b/src/config/sync/taxonomy.vocabulary.structure.yml @@ -0,0 +1,8 @@ +uuid: 7ee96263-996f-4845-9f71-b7798e1b0fa2 +langcode: fr +status: true +dependencies: { } +name: Structure +vid: structure +description: '' +weight: 0