created taxo collection

This commit is contained in:
Bachir Soussi Chiadmi 2021-08-10 23:01:03 +02:00
parent f25495715c
commit 3f2b74db2a
19 changed files with 518 additions and 316 deletions

View File

@ -1,22 +0,0 @@
uuid: 57d6a1d1-3614-4ba3-b5fd-50dd574fdec4
langcode: fr
status: true
dependencies:
config:
- node.type.collection
id: node.collection.promote
field_name: promote
entity_type: node
bundle: collection
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

View File

@ -1,124 +0,0 @@
uuid: 704d7aef-b6db-48eb-929f-f910d3cb4ff2
langcode: fr
status: true
dependencies:
config:
- field.field.node.collection.body
- field.field.node.collection.field_ressources_liees
- node.type.collection
module:
- field_group
- text
third_party_settings:
field_group:
group_tabs:
children:
- group_principal
- group_ressources
parent_name: ''
weight: 20
format_type: tabs
region: content
format_settings:
direction: horizontal
id: ''
classes: ''
label: Tabs
group_principal:
children:
- body
parent_name: group_tabs
weight: 20
format_type: tab
region: content
format_settings:
id: ''
classes: ''
description: ''
formatter: open
required_fields: true
label: Principal
group_ressources:
children:
- field_ressources_liees
parent_name: group_tabs
weight: 20
format_type: tab
region: content
format_settings:
id: ''
classes: ''
description: ''
formatter: closed
required_fields: true
label: Ressources
group_details:
children:
- promote
- status
parent_name: ''
weight: 20
format_type: details_sidebar
region: content
format_settings:
id: ''
classes: ''
description: ''
open: true
required_fields: true
weight: 0
label: Details
id: node.collection.default
targetEntityType: node
bundle: collection
mode: default
content:
body:
type: text_textarea_with_summary
weight: 121
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
region: content
field_ressources_liees:
weight: 122
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
promote:
type: boolean_checkbox
settings:
display_label: true
weight: 15
region: content
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 120
region: content
third_party_settings: { }
title:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
langcode: true
path: true
sticky: true
uid: true
url_redirects: true

View File

@ -5,6 +5,7 @@ dependencies:
config:
- field.field.node.ressource.body
- field.field.node.ressource.field_auteurs
- field.field.node.ressource.field_collections
- field.field.node.ressource.field_date_de_parution
- field.field.node.ressource.field_edition
- field.field.node.ressource.field_evenements_lies
@ -56,6 +57,7 @@ third_party_settings:
- field_projet
- field_theme
- field_sous_titre
- field_collections
- field_type_de_ressource
parent_name: group_tabs
weight: 17
@ -171,6 +173,16 @@ content:
third_party_settings: { }
type: text_textarea
region: content
field_collections:
weight: -16
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_date_de_parution:
weight: 129
settings: { }
@ -304,7 +316,7 @@ content:
type: entity_reference_autocomplete
region: content
field_sous_titre:
weight: -4
weight: -17
settings:
size: 60
placeholder: ''
@ -322,7 +334,7 @@ content:
type: entity_reference_autocomplete
region: content
field_type_de_ressource:
weight: -3
weight: -15
settings:
match_operator: CONTAINS
match_limit: 10

View File

@ -1,39 +0,0 @@
uuid: fa09482f-7e54-47de-9e1f-c3f38991c682
langcode: fr
status: true
dependencies:
config:
- field.field.node.collection.body
- field.field.node.collection.field_ressources_liees
- node.type.collection
module:
- text
- user
id: node.collection.default
targetEntityType: node
bundle: collection
mode: default
content:
body:
label: hidden
type: text_default
weight: 101
settings: { }
third_party_settings: { }
region: content
field_ressources_liees:
weight: 102
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
region: content
links:
weight: 100
settings: { }
third_party_settings: { }
region: content
hidden:
langcode: true
search_api_excerpt: true

View File

@ -1,34 +0,0 @@
uuid: b10d8cdc-22f2-4e6b-aef2-6f02915b9a7f
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.collection.body
- field.field.node.collection.field_ressources_liees
- node.type.collection
module:
- text
- user
id: node.collection.teaser
targetEntityType: node
bundle: collection
mode: teaser
content:
body:
label: hidden
type: text_summary_or_trimmed
weight: 101
settings:
trim_length: 600
third_party_settings: { }
region: content
links:
weight: 100
settings: { }
third_party_settings: { }
region: content
hidden:
field_ressources_liees: true
langcode: true
search_api_excerpt: true

View File

@ -5,6 +5,7 @@ dependencies:
config:
- field.field.node.ressource.body
- field.field.node.ressource.field_auteurs
- field.field.node.ressource.field_collections
- field.field.node.ressource.field_date_de_parution
- field.field.node.ressource.field_edition
- field.field.node.ressource.field_evenements_lies
@ -43,19 +44,28 @@ content:
body:
label: hidden
type: text_default
weight: 7
weight: 8
settings: { }
third_party_settings: { }
region: content
field_auteurs:
weight: 8
weight: 9
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_date_de_parution:
field_collections:
weight: 5
label: above
settings:
link: true
view_mode: default
third_party_settings: { }
type: entity_reference_entity_view
region: content
field_date_de_parution:
weight: 6
label: hidden
settings:
format_type: medium
@ -64,14 +74,14 @@ content:
type: datetime_default
region: content
field_edition:
weight: 9
weight: 10
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_evenements_lies:
weight: 12
weight: 13
label: above
settings:
link: true
@ -79,7 +89,7 @@ content:
type: entity_reference_label
region: content
field_fichier:
weight: 11
weight: 12
label: above
settings:
use_description_as_link_text: true
@ -87,7 +97,7 @@ content:
type: file_default
region: content
field_image:
weight: 6
weight: 7
label: hidden
settings:
image_style: ''
@ -112,7 +122,7 @@ content:
type: entity_reference_label
region: content
field_ressources_liees:
weight: 13
weight: 14
label: above
settings:
link: true
@ -144,7 +154,7 @@ content:
type: entity_reference_label
region: content
field_videos:
weight: 10
weight: 11
label: hidden
settings:
responsive: true

View File

@ -6,6 +6,7 @@ dependencies:
- core.entity_view_mode.node.teaser
- field.field.node.ressource.body
- field.field.node.ressource.field_auteurs
- field.field.node.ressource.field_collections
- field.field.node.ressource.field_date_de_parution
- field.field.node.ressource.field_edition
- field.field.node.ressource.field_evenements_lies
@ -38,9 +39,17 @@ targetEntityType: node
bundle: ressource
mode: teaser
content:
field_collections:
type: entity_reference_label
weight: 2
region: content
label: inline
settings:
link: true
third_party_settings: { }
field_image:
type: image
weight: 2
weight: 3
region: content
label: hidden
settings:

View File

@ -1,23 +0,0 @@
uuid: 43d32cac-68b6-4ff8-84cc-3bd1d911f030
langcode: fr
status: true
dependencies:
config:
- field.storage.node.body
- node.type.collection
module:
- text
id: node.collection.body
field_name: body
entity_type: node
bundle: collection
label: Texte
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: false
field_type: text_with_summary

View File

@ -1,29 +0,0 @@
uuid: 9ef62114-82d2-43b9-963c-c7cfdbfcb62e
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_ressources_liees
- node.type.collection
- node.type.ressource
id: node.collection.field_ressources_liees
field_name: field_ressources_liees
entity_type: node
bundle: collection
label: Ressources
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
ressource: ressource
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@ -0,0 +1,29 @@
uuid: 73754625-35d9-4d31-9796-87a17dc0f398
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_collections
- node.type.ressource
- taxonomy.vocabulary.collection
id: node.ressource.field_collections
field_name: field_collections
entity_type: node
bundle: ressource
label: Collections
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
collection: collection
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@ -5,7 +5,6 @@ dependencies:
config:
- field.storage.paragraph.field_liste_contenus
- node.type.actualite
- node.type.collection
- node.type.evenement
- node.type.projet
- node.type.ressource
@ -26,7 +25,6 @@ settings:
handler_settings:
target_bundles:
actualite: actualite
collection: collection
projet: projet
ressource: ressource
theme: theme

View File

@ -0,0 +1,20 @@
uuid: d14b30b2-60c1-4ce5-84ed-27f8589421fa
langcode: fr
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_collections
field_name: field_collections
entity_type: node
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

@ -1,11 +0,0 @@
uuid: 61487356-9d45-4292-84fa-9f8f4423df97
langcode: fr
status: true
dependencies:
config:
- node.type.collection
id: node.collection
target_entity_type_id: node
target_bundle: collection
default_langcode: site_default
language_alterable: false

View File

@ -0,0 +1,11 @@
uuid: 9f033ab1-241e-40c0-839f-9c5edff8a1cc
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.collection
id: taxonomy_term.collection
target_entity_type_id: taxonomy_term
target_bundle: collection
default_langcode: site_default
language_alterable: false

View File

@ -1,17 +0,0 @@
uuid: 0513f1fa-afba-4061-8066-f65a8f8a122e
langcode: fr
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus: { }
parent: ''
name: Collection
type: collection
description: ''
help: ''
new_revision: true
preview_mode: 0
display_submitted: false

View File

@ -0,0 +1,8 @@
uuid: 70be5056-a4bd-4b41-92e5-b236093d1e22
langcode: fr
status: true
dependencies: { }
name: Collection
vid: collection
description: ''
weight: 0

View File

@ -5,7 +5,7 @@ dependencies:
config:
- field.storage.taxonomy_term.field_adresse
- field.storage.taxonomy_term.field_geofield
- taxonomy.vocabulary.types_de_document
- taxonomy.vocabulary.collection
- taxonomy.vocabulary.villes
module:
- address
@ -197,7 +197,7 @@ display:
action_id: 'entity:unpublish_action:taxonomy_term'
preconfiguration:
add_confirmation: 0
force_selection_info: 0
force_selection_info: false
plugin_id: views_bulk_operations_bulk_form
name:
id: name
@ -578,7 +578,7 @@ display:
admin_label: ''
operator: in
value:
types_de_document: types_de_document
collection: collection
group: 1
exposed: false
expose:
@ -827,3 +827,334 @@ display:
tags:
- 'config:field.storage.taxonomy_term.field_adresse'
- 'config:field.storage.taxonomy_term.field_geofield'
page_5:
display_plugin: page
id: page_5
display_title: collections
position: 1
display_options:
display_extenders:
views_ef_fieldset: { }
display_description: ''
path: admin/content/collections
menu:
type: tab
title: Collections
description: ''
expanded: false
parent: system.admin_content
weight: 0
context: '0'
menu_name: admin
title: Collections
defaults:
title: false
fields: false
fields:
views_bulk_operations_bulk_form:
id: views_bulk_operations_bulk_form
table: views
field: views_bulk_operations_bulk_form
relationship: none
group_type: group
admin_label: ''
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
batch: true
batch_size: 10
form_step: true
buttons: false
clear_on_exposed: true
action_title: Action
selected_actions:
0:
action_id: 'entity:break_lock:taxonomy_term'
preconfiguration:
add_confirmation: 0
3:
action_id: 'entity:publish_action:taxonomy_term'
preconfiguration:
add_confirmation: 0
5:
action_id: 'entity:unpublish_action:taxonomy_term'
preconfiguration:
add_confirmation: 0
force_selection_info: false
plugin_id: views_bulk_operations_bulk_form
name:
id: name
table: taxonomy_term_field_data
field: name
entity_type: taxonomy_term
entity_field: name
label: ''
alter:
alter_text: false
make_link: false
absolute: false
trim: false
word_boundary: false
ellipsis: false
strip_tags: false
html: false
hide_empty: false
empty_zero: false
type: string
settings:
link_to_entity: true
plugin_id: term_name
relationship: none
group_type: group
admin_label: ''
exclude: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_alter_empty: true
click_sort_column: value
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
convert_spaces: false
operations:
id: operations
table: taxonomy_term_data
field: operations
relationship: none
group_type: group
admin_label: ''
label: 'Liens d''actions'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
destination: false
entity_type: taxonomy_term
plugin_id: entity_operations
description__value:
id: description__value
table: taxonomy_term_field_revision
field: description__value
relationship: none
group_type: group
admin_label: ''
label: Description
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: text_default
settings: { }
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: taxonomy_term
entity_field: description
plugin_id: field
changed:
id: changed
table: taxonomy_term_field_revision
field: changed
relationship: none
group_type: group
admin_label: ''
label: Modifié
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: timestamp
settings:
date_format: medium
custom_date_format: ''
timezone: ''
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: taxonomy_term
entity_field: changed
plugin_id: field
cache_metadata:
max-age: 0
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- user.permissions
tags: { }

View File

@ -4,6 +4,7 @@ status: true
dependencies:
config:
- field.storage.node.field_actif
- field.storage.node.field_collections
- field.storage.node.field_comparatifs_associes
- field.storage.node.field_dates_actu
- field.storage.node.field_diaporama
@ -4115,6 +4116,69 @@ display:
hide_alter_empty: true
destination: true
plugin_id: entity_operations
field_collections:
id: field_collections
table: node__field_collections
field: field_collections
relationship: none
group_type: group
admin_label: ''
label: Collections
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: entity_reference_label
settings:
link: true
group_column: target_id
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
field_programme:
id: field_programme
table: node__field_programme
@ -4616,6 +4680,7 @@ display:
- user.permissions
max-age: 0
tags:
- 'config:field.storage.node.field_collections'
- 'config:field.storage.node.field_evenements_lies'
- 'config:field.storage.node.field_image'
- 'config:field.storage.node.field_memo'

View File

@ -85,3 +85,11 @@ editors_menus.type_theme_add:
title: 'Add Type de theme'
appears_on:
- view.admin_taxo.page_4
editors_menus.collection_add:
route_name: entity.taxonomy_term.add_form
route_parameters:
taxonomy_vocabulary: 'collection'
title: 'Add Collection'
appears_on:
- view.admin_taxo.page_5