added 'structure' taxonomy to groups and users

This commit is contained in:
Bachir Soussi Chiadmi 2023-03-20 15:52:46 +01:00
parent b9a20da330
commit 89cba88747
11 changed files with 207 additions and 1 deletions

View File

@ -4,8 +4,10 @@ status: true
dependencies: dependencies:
config: config:
- field.field.group.bourgeon.field_description - field.field.group.bourgeon.field_description
- field.field.group.bourgeon.field_structure
- group.type.bourgeon - group.type.bourgeon
module: module:
- autocomplete_deluxe
- field_group - field_group
- text - text
third_party_settings: third_party_settings:
@ -33,7 +35,7 @@ mode: default
content: content:
field_description: field_description:
type: text_textarea_with_summary type: text_textarea_with_summary
weight: 1 weight: 2
region: content region: content
settings: settings:
rows: 9 rows: 9
@ -41,6 +43,23 @@ content:
placeholder: '' placeholder: ''
show_summary: false show_summary: false
third_party_settings: { } 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: label:
type: string_textfield type: string_textfield
weight: 0 weight: 0

View File

@ -2,7 +2,10 @@ uuid: 2831e53a-5b05-4e79-bd7c-9f796f246b67
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
config:
- field.field.user.user.field_strucure
module: module:
- autocomplete_deluxe
- user - user
id: user.user.default id: user.user.default
targetEntityType: user targetEntityType: user
@ -14,6 +17,23 @@ content:
region: content region: content
settings: { } settings: { }
third_party_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: hidden:
contact: true contact: true
langcode: true langcode: true

View File

@ -4,6 +4,7 @@ status: true
dependencies: dependencies:
config: config:
- core.entity_form_mode.user.group - core.entity_form_mode.user.group
- field.field.user.user.field_strucure
module: module:
- user - user
id: user.user.group id: user.user.group
@ -16,6 +17,16 @@ content:
region: content region: content
settings: { } settings: { }
third_party_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: hidden:
contact: true contact: true
langcode: true langcode: true

View File

@ -4,6 +4,7 @@ status: true
dependencies: dependencies:
config: config:
- field.field.group.bourgeon.field_description - field.field.group.bourgeon.field_description
- field.field.group.bourgeon.field_structure
- group.type.bourgeon - group.type.bourgeon
module: module:
- text - text
@ -19,6 +20,14 @@ content:
third_party_settings: { } third_party_settings: { }
weight: -4 weight: -4
region: content region: content
field_structure:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: -3
region: content
label: label:
type: string type: string
label: hidden label: hidden

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,8 @@
uuid: 7ee96263-996f-4845-9f71-b7798e1b0fa2
langcode: fr
status: true
dependencies: { }
name: Structure
vid: structure
description: ''
weight: 0