added date, actions, audio fields to enties

This commit is contained in:
Bachir Soussi Chiadmi 2022-10-06 11:15:20 +02:00
parent 7f28838ca4
commit 4576edc77a
16 changed files with 413 additions and 4 deletions

View File

@ -4,6 +4,9 @@ status: true
dependencies:
config:
- field.field.node.entite.body
- field.field.node.entite.field_actions
- field.field.node.entite.field_audio
- field.field.node.entite.field_date
- field.field.node.entite.field_documents
- field.field.node.entite.field_images
- field.field.node.entite.field_liens
@ -11,10 +14,12 @@ dependencies:
- image.style.thumbnail
- node.type.entite
module:
- datetime
- field_group
- file
- image
- link
- paragraphs
- text
- video_embed_field
third_party_settings:
@ -25,6 +30,7 @@ third_party_settings:
- group_media
- group_documents
- group_liens
- group_actions
label: Tabs
region: content
parent_name: ''
@ -40,6 +46,7 @@ third_party_settings:
children:
- field_images
- field_videos
- field_audio
label: Media
region: content
parent_name: group_tabs
@ -69,6 +76,7 @@ third_party_settings:
required_fields: true
group_details:
children:
- field_date
- langcode
- uid
- created
@ -116,6 +124,21 @@ third_party_settings:
formatter: closed
description: ''
required_fields: true
group_actions:
children:
- field_actions
label: Actions
region: hidden
parent_name: group_tabs
weight: 19
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: closed
description: ''
required_fields: true
id: node.entite.default
targetEntityType: node
bundle: entite
@ -133,7 +156,38 @@ content:
third_party_settings: { }
created:
type: datetime_timestamp
weight: 5
weight: 30
region: content
settings: { }
third_party_settings: { }
field_actions:
type: paragraphs
weight: 4
region: content
settings:
title: Paragraphe
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: ''
features:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
field_audio:
type: file_generic
weight: 13
region: content
settings:
progress_indicator: throbber
third_party_settings: { }
field_date:
type: datetime_default
weight: 27
region: content
settings: { }
third_party_settings: { }
@ -168,14 +222,14 @@ content:
third_party_settings: { }
langcode:
type: language_select
weight: 3
weight: 28
region: content
settings:
include_locked: true
third_party_settings: { }
status:
type: boolean_checkbox
weight: 6
weight: 31
region: content
settings:
display_label: true
@ -190,7 +244,7 @@ content:
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 4
weight: 29
region: content
settings:
match_operator: CONTAINS

View File

@ -0,0 +1,34 @@
uuid: b0f00d34-caf3-482a-93ce-5af77683e089
langcode: fr
status: true
dependencies:
config:
- field.field.paragraph.action.field_description
- field.field.paragraph.action.field_menace_maintien
- paragraphs.paragraphs_type.action
module:
- text
id: paragraph.action.default
targetEntityType: paragraph
bundle: action
mode: default
content:
field_description:
type: text_textarea_with_summary
weight: 1
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
field_menace_maintien:
type: options_select
weight: 0
region: content
settings: { }
third_party_settings: { }
hidden:
created: true
status: true

View File

@ -4,12 +4,17 @@ status: true
dependencies:
config:
- field.field.node.entite.body
- field.field.node.entite.field_actions
- field.field.node.entite.field_audio
- field.field.node.entite.field_date
- field.field.node.entite.field_documents
- field.field.node.entite.field_images
- field.field.node.entite.field_liens
- field.field.node.entite.field_videos
- node.type.entite
module:
- datetime
- entity_reference_revisions
- file
- image
- link
@ -28,6 +33,32 @@ content:
third_party_settings: { }
weight: 101
region: content
field_actions:
type: entity_reference_revisions_entity_view
label: above
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 108
region: content
field_audio:
type: file_default
label: above
settings:
use_description_as_link_text: true
third_party_settings: { }
weight: 107
region: content
field_date:
type: datetime_default
label: above
settings:
timezone_override: ''
format_type: medium
third_party_settings: { }
weight: 106
region: content
field_documents:
type: file_default
label: above

View File

@ -5,6 +5,9 @@ dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.entite.body
- field.field.node.entite.field_actions
- field.field.node.entite.field_audio
- field.field.node.entite.field_date
- field.field.node.entite.field_documents
- field.field.node.entite.field_images
- field.field.node.entite.field_liens
@ -32,6 +35,9 @@ content:
weight: 100
region: content
hidden:
field_actions: true
field_audio: true
field_date: true
field_documents: true
field_images: true
field_liens: true

View File

@ -0,0 +1,32 @@
uuid: 2262bb15-6d0f-4a6e-97f0-1d39f5812dbf
langcode: fr
status: true
dependencies:
config:
- field.field.paragraph.action.field_description
- field.field.paragraph.action.field_menace_maintien
- paragraphs.paragraphs_type.action
module:
- options
- text
id: paragraph.action.default
targetEntityType: paragraph
bundle: action
mode: default
content:
field_description:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 1
region: content
field_menace_maintien:
type: list_default
label: above
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true

View File

@ -0,0 +1,34 @@
uuid: 45d59d2a-bf49-4e19-ae5c-43fa5edcf22b
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_actions
- node.type.entite
- paragraphs.paragraphs_type.action
module:
- entity_reference_revisions
id: node.entite.field_actions
field_name: field_actions
entity_type: node
bundle: entite
label: Actions
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:paragraph'
handler_settings:
target_bundles:
action: action
negate: 0
target_bundles_drag_drop:
action:
weight: 3
enabled: true
entite_concernement:
weight: 4
enabled: false
field_type: entity_reference_revisions

View File

@ -0,0 +1,27 @@
uuid: 9c86a037-8fcb-4f89-a6bb-97d8f7944a62
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_audio
- node.type.entite
module:
- file
id: node.entite.field_audio
field_name: field_audio
entity_type: node
bundle: entite
label: Audio
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: 'ogg mp3 mp4 oga wav flac'
max_filesize: ''
description_field: true
field_type: file

View File

@ -0,0 +1,21 @@
uuid: cf15dea4-2310-4aa0-9463-473ab53ba393
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_date
- node.type.entite
module:
- datetime
id: node.entite.field_date
field_name: field_date
entity_type: node
bundle: entite
label: Date
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime

View File

@ -0,0 +1,23 @@
uuid: 05a341db-1634-4958-b163-f2340eada7e3
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_description
- paragraphs.paragraphs_type.action
module:
- text
id: paragraph.action.field_description
field_name: field_description
entity_type: paragraph
bundle: action
label: Description
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: false
field_type: text_with_summary

View File

@ -0,0 +1,23 @@
uuid: b9755278-a9ea-47b3-9b6a-74898c26bf72
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_menace_maintien
- paragraphs.paragraphs_type.action
module:
- options
id: paragraph.action.field_menace_maintien
field_name: field_menace_maintien
entity_type: paragraph
bundle: action
label: menace/maintien
description: ''
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings: { }
field_type: list_integer

View File

@ -0,0 +1,21 @@
uuid: 0e8c45f8-cc07-4c05-8406-011b7900abef
langcode: fr
status: true
dependencies:
module:
- entity_reference_revisions
- node
- paragraphs
id: node.field_actions
field_name: field_actions
entity_type: node
type: entity_reference_revisions
settings:
target_type: paragraph
module: entity_reference_revisions
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,23 @@
uuid: 1d4a4a9f-2384-4378-9b42-98c8b6713270
langcode: fr
status: true
dependencies:
module:
- file
- node
id: node.field_audio
field_name: field_audio
entity_type: node
type: file
settings:
target_type: file
display_field: true
display_default: true
uri_scheme: public
module: file
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,20 @@
uuid: 54b2c708-dead-4496-8463-f40b520dfc07
langcode: fr
status: true
dependencies:
module:
- datetime
- node
id: node.field_date
field_name: field_date
entity_type: node
type: datetime
settings:
datetime_type: date
module: datetime
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,19 @@
uuid: 023c76cd-6e98-4390-a083-7d2b1dc03332
langcode: fr
status: true
dependencies:
module:
- paragraphs
- text
id: paragraph.field_description
field_name: field_description
entity_type: paragraph
type: text_with_summary
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,30 @@
uuid: 456daee0-478e-426c-9bb4-cd8819ef99fd
langcode: fr
status: true
dependencies:
module:
- options
- paragraphs
id: paragraph.field_menace_maintien
field_name: field_menace_maintien
entity_type: paragraph
type: list_integer
settings:
allowed_values:
-
value: -1
label: menace
-
value: 0
label: neutre
-
value: 1
label: maintien
allowed_values_function: ''
module: options
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,11 @@
uuid: 5d86035e-a6f0-4f99-ace7-50ef7d867140
langcode: fr
status: true
dependencies: { }
id: action
label: action
icon_uuid: null
icon_default: null
description: 'entity''s action'
save_empty: false
behavior_plugins: { }