Browse Source

added all fields to actions

bach 2 years ago
parent
commit
a037a359de

+ 7 - 7
src/config/sync/core.entity_form_display.node.entite.default.yml

@@ -27,10 +27,10 @@ third_party_settings:
     group_tabs:
       children:
         - group_texte
+        - group_actions
         - group_media
         - group_documents
         - group_liens
-        - group_actions
       label: Tabs
       region: content
       parent_name: ''
@@ -50,7 +50,7 @@ third_party_settings:
       label: Media
       region: content
       parent_name: group_tabs
-      weight: 16
+      weight: 12
       format_type: tab
       format_settings:
         classes: ''
@@ -65,7 +65,7 @@ third_party_settings:
       label: Texte
       region: content
       parent_name: group_tabs
-      weight: 15
+      weight: 10
       format_type: tab
       format_settings:
         classes: ''
@@ -100,7 +100,7 @@ third_party_settings:
       label: Documents
       region: content
       parent_name: group_tabs
-      weight: 17
+      weight: 13
       format_type: tab
       format_settings:
         classes: ''
@@ -115,7 +115,7 @@ third_party_settings:
       label: Liens
       region: content
       parent_name: group_tabs
-      weight: 18
+      weight: 14
       format_type: tab
       format_settings:
         classes: ''
@@ -128,9 +128,9 @@ third_party_settings:
       children:
         - field_actions
       label: Actions
-      region: hidden
+      region: content
       parent_name: group_tabs
-      weight: 19
+      weight: 11
       format_type: tab
       format_settings:
         classes: ''

+ 175 - 2
src/config/sync/core.entity_form_display.paragraph.action.default.yml

@@ -3,19 +3,163 @@ langcode: fr
 status: true
 dependencies:
   config:
+    - field.field.paragraph.action.field_audio
     - field.field.paragraph.action.field_description
+    - field.field.paragraph.action.field_documents
+    - field.field.paragraph.action.field_images
+    - field.field.paragraph.action.field_liens
     - field.field.paragraph.action.field_menace_maintien
+    - field.field.paragraph.action.field_videos
+    - image.style.thumbnail
     - paragraphs.paragraphs_type.action
   module:
+    - field_group
+    - file
+    - image
+    - link
     - text
+    - video_embed_field
+third_party_settings:
+  field_group:
+    group_tabs:
+      children:
+        - group_texte
+        - group_media
+        - group_videos
+        - group_audio
+        - group_documents
+        - group_liens
+      label: Tabs
+      region: content
+      parent_name: ''
+      weight: 0
+      format_type: tabs
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        direction: horizontal
+        width_breakpoint: 640
+    group_texte:
+      children:
+        - field_menace_maintien
+        - field_description
+      label: Texte
+      region: content
+      parent_name: group_tabs
+      weight: 20
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: open
+        description: ''
+        required_fields: true
+    group_media:
+      children:
+        - field_images
+      label: Images
+      region: content
+      parent_name: group_tabs
+      weight: 21
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: closed
+        description: ''
+        required_fields: true
+    group_liens:
+      children:
+        - field_liens
+      label: Liens
+      region: content
+      parent_name: group_tabs
+      weight: 25
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: closed
+        description: ''
+        required_fields: true
+    group_details:
+      children: {  }
+      label: Details
+      region: hidden
+      parent_name: ''
+      weight: 1
+      format_type: details
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        open: false
+        description: ''
+        required_fields: true
+    group_documents:
+      children:
+        - field_documents
+      label: Documents
+      region: content
+      parent_name: group_tabs
+      weight: 24
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: closed
+        description: ''
+        required_fields: true
+    group_videos:
+      children:
+        - field_videos
+      label: Videos
+      region: content
+      parent_name: group_tabs
+      weight: 22
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: closed
+        description: ''
+        required_fields: true
+    group_audio:
+      children:
+        - field_audio
+      label: Audio
+      region: content
+      parent_name: group_tabs
+      weight: 23
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: closed
+        description: ''
+        required_fields: true
 id: paragraph.action.default
 targetEntityType: paragraph
 bundle: action
 mode: default
 content:
+  field_audio:
+    type: file_generic
+    weight: 26
+    region: content
+    settings:
+      progress_indicator: throbber
+    third_party_settings: {  }
   field_description:
     type: text_textarea_with_summary
-    weight: 1
+    weight: 2
     region: content
     settings:
       rows: 9
@@ -23,9 +167,38 @@ content:
       placeholder: ''
       show_summary: false
     third_party_settings: {  }
+  field_documents:
+    type: file_generic
+    weight: 27
+    region: content
+    settings:
+      progress_indicator: throbber
+    third_party_settings: {  }
+  field_images:
+    type: image_image
+    weight: 24
+    region: content
+    settings:
+      progress_indicator: throbber
+      preview_image_style: thumbnail
+    third_party_settings: {  }
+  field_liens:
+    type: link_default
+    weight: 28
+    region: content
+    settings:
+      placeholder_url: ''
+      placeholder_title: ''
+    third_party_settings: {  }
   field_menace_maintien:
     type: options_select
-    weight: 0
+    weight: 1
+    region: content
+    settings: {  }
+    third_party_settings: {  }
+  field_videos:
+    type: video_embed_field_textfield
+    weight: 25
     region: content
     settings: {  }
     third_party_settings: {  }

+ 59 - 0
src/config/sync/core.entity_view_display.paragraph.action.default.yml

@@ -3,17 +3,34 @@ langcode: fr
 status: true
 dependencies:
   config:
+    - field.field.paragraph.action.field_audio
     - field.field.paragraph.action.field_description
+    - field.field.paragraph.action.field_documents
+    - field.field.paragraph.action.field_images
+    - field.field.paragraph.action.field_liens
     - field.field.paragraph.action.field_menace_maintien
+    - field.field.paragraph.action.field_videos
     - paragraphs.paragraphs_type.action
   module:
+    - file
+    - image
+    - link
     - options
     - text
+    - video_embed_field
 id: paragraph.action.default
 targetEntityType: paragraph
 bundle: action
 mode: default
 content:
+  field_audio:
+    type: file_default
+    label: above
+    settings:
+      use_description_as_link_text: true
+    third_party_settings: {  }
+    weight: 4
+    region: content
   field_description:
     type: text_default
     label: above
@@ -21,6 +38,37 @@ content:
     third_party_settings: {  }
     weight: 1
     region: content
+  field_documents:
+    type: file_default
+    label: above
+    settings:
+      use_description_as_link_text: true
+    third_party_settings: {  }
+    weight: 5
+    region: content
+  field_images:
+    type: image
+    label: above
+    settings:
+      image_link: ''
+      image_style: ''
+      image_loading:
+        attribute: lazy
+    third_party_settings: {  }
+    weight: 3
+    region: content
+  field_liens:
+    type: link
+    label: above
+    settings:
+      trim_length: 80
+      url_only: false
+      url_plain: false
+      rel: ''
+      target: ''
+    third_party_settings: {  }
+    weight: 6
+    region: content
   field_menace_maintien:
     type: list_default
     label: above
@@ -28,5 +76,16 @@ content:
     third_party_settings: {  }
     weight: 0
     region: content
+  field_videos:
+    type: video_embed_field_video
+    label: above
+    settings:
+      autoplay: true
+      responsive: true
+      width: 854
+      height: 480
+    third_party_settings: {  }
+    weight: 2
+    region: content
 hidden:
   search_api_excerpt: true

+ 27 - 0
src/config/sync/field.field.paragraph.action.field_audio.yml

@@ -0,0 +1,27 @@
+uuid: 2f5a684f-65f5-4836-800b-4f5288336eea
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_audio
+    - paragraphs.paragraphs_type.action
+  module:
+    - file
+id: paragraph.action.field_audio
+field_name: field_audio
+entity_type: paragraph
+bundle: action
+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
+  max_filesize: ''
+  description_field: true
+field_type: file

+ 27 - 0
src/config/sync/field.field.paragraph.action.field_documents.yml

@@ -0,0 +1,27 @@
+uuid: 2cdabaf8-b222-420c-9368-f6b499be9723
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_documents
+    - paragraphs.paragraphs_type.action
+  module:
+    - file
+id: paragraph.action.field_documents
+field_name: field_documents
+entity_type: paragraph
+bundle: action
+label: Documents
+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: 'txt pdf doc docx obs xls'
+  max_filesize: ''
+  description_field: true
+field_type: file

+ 38 - 0
src/config/sync/field.field.paragraph.action.field_images.yml

@@ -0,0 +1,38 @@
+uuid: 682d66f1-8016-40a7-a966-454674db90dd
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_images
+    - paragraphs.paragraphs_type.action
+  module:
+    - image
+id: paragraph.action.field_images
+field_name: field_images
+entity_type: paragraph
+bundle: action
+label: Images
+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'
+  max_filesize: ''
+  max_resolution: ''
+  min_resolution: ''
+  alt_field: true
+  alt_field_required: false
+  title_field: true
+  title_field_required: false
+  default_image:
+    uuid: ''
+    alt: ''
+    title: ''
+    width: null
+    height: null
+field_type: image

+ 23 - 0
src/config/sync/field.field.paragraph.action.field_liens.yml

@@ -0,0 +1,23 @@
+uuid: bfff8927-93c3-4c4d-9ccd-80ac1068f870
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_liens
+    - paragraphs.paragraphs_type.action
+  module:
+    - link
+id: paragraph.action.field_liens
+field_name: field_liens
+entity_type: paragraph
+bundle: action
+label: Liens
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  title: 1
+  link_type: 16
+field_type: link

+ 25 - 0
src/config/sync/field.field.paragraph.action.field_videos.yml

@@ -0,0 +1,25 @@
+uuid: e38feb3b-324c-425a-8036-2a0d3deb5a94
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_videos
+    - paragraphs.paragraphs_type.action
+  module:
+    - video_embed_field
+id: paragraph.action.field_videos
+field_name: field_videos
+entity_type: paragraph
+bundle: action
+label: Videos
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  allowed_providers:
+    vimeo: vimeo
+    youtube: youtube
+    youtube_playlist: '0'
+field_type: video_embed_field

+ 23 - 0
src/config/sync/field.storage.paragraph.field_audio.yml

@@ -0,0 +1,23 @@
+uuid: 3c625e2b-b8e8-4263-b528-ca85d9655eb0
+langcode: fr
+status: true
+dependencies:
+  module:
+    - file
+    - paragraphs
+id: paragraph.field_audio
+field_name: field_audio
+entity_type: paragraph
+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

+ 23 - 0
src/config/sync/field.storage.paragraph.field_documents.yml

@@ -0,0 +1,23 @@
+uuid: d14de20a-5c4a-4d48-b880-33633f0e6ced
+langcode: fr
+status: true
+dependencies:
+  module:
+    - file
+    - paragraphs
+id: paragraph.field_documents
+field_name: field_documents
+entity_type: paragraph
+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

+ 30 - 0
src/config/sync/field.storage.paragraph.field_images.yml

@@ -0,0 +1,30 @@
+uuid: 3290a99f-855c-4dd1-9631-c2527c432471
+langcode: fr
+status: true
+dependencies:
+  module:
+    - file
+    - image
+    - paragraphs
+id: paragraph.field_images
+field_name: field_images
+entity_type: paragraph
+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

+ 19 - 0
src/config/sync/field.storage.paragraph.field_liens.yml

@@ -0,0 +1,19 @@
+uuid: 5a8d31e3-32e5-410f-8a6b-82c592acdf46
+langcode: fr
+status: true
+dependencies:
+  module:
+    - link
+    - paragraphs
+id: paragraph.field_liens
+field_name: field_liens
+entity_type: paragraph
+type: link
+settings: {  }
+module: link
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 19 - 0
src/config/sync/field.storage.paragraph.field_videos.yml

@@ -0,0 +1,19 @@
+uuid: 3d5af0ad-3482-474c-b06c-db3067eadf69
+langcode: fr
+status: true
+dependencies:
+  module:
+    - paragraphs
+    - video_embed_field
+id: paragraph.field_videos
+field_name: field_videos
+entity_type: paragraph
+type: video_embed_field
+settings: {  }
+module: video_embed_field
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false