bach 4 роки тому
батько
коміт
30005bb003

+ 88 - 0
config/sync/core.entity_form_display.node.static.default.yml

@@ -0,0 +1,88 @@
+uuid: b5812f35-419e-4ee4-89b1-b376e1112d1f
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.node.static.body
+    - field.field.node.static.field_fichier
+    - node.type.static
+  module:
+    - file
+    - path
+id: node.static.default
+targetEntityType: node
+bundle: static
+mode: default
+content:
+  created:
+    type: datetime_timestamp
+    weight: 10
+    region: content
+    settings: {  }
+    third_party_settings: {  }
+  field_fichier:
+    weight: 121
+    settings:
+      progress_indicator: throbber
+    third_party_settings: {  }
+    type: file_generic
+    region: content
+  langcode:
+    type: language_select
+    weight: 2
+    region: content
+    settings:
+      include_locked: true
+    third_party_settings: {  }
+  path:
+    type: path
+    weight: 30
+    region: content
+    settings: {  }
+    third_party_settings: {  }
+  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: {  }
+  sticky:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 16
+    region: content
+    third_party_settings: {  }
+  title:
+    type: string_textfield
+    weight: -5
+    region: content
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+  uid:
+    type: entity_reference_autocomplete
+    weight: 5
+    settings:
+      match_operator: CONTAINS
+      size: 60
+      placeholder: ''
+      match_limit: 10
+    region: content
+    third_party_settings: {  }
+  url_redirects:
+    weight: 50
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+hidden:
+  body: true

+ 10 - 0
config/sync/core.entity_view_display.node.static.default.yml

@@ -4,8 +4,10 @@ status: true
 dependencies:
   config:
     - field.field.node.static.body
+    - field.field.node.static.field_fichier
     - node.type.static
   module:
+    - file
     - text
     - user
 _core:
@@ -22,6 +24,14 @@ content:
     settings: {  }
     third_party_settings: {  }
     region: content
+  field_fichier:
+    weight: 2
+    label: above
+    settings:
+      use_description_as_link_text: true
+    third_party_settings: {  }
+    type: file_default
+    region: content
   links:
     weight: 1
     region: content

+ 27 - 0
config/sync/field.field.node.static.field_fichier.yml

@@ -0,0 +1,27 @@
+uuid: 05d632fa-3ac6-4be6-a1e7-f314f3230b42
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_fichier
+    - node.type.static
+  module:
+    - file
+id: node.static.field_fichier
+field_name: field_fichier
+entity_type: node
+bundle: static
+label: Fichier
+description: ''
+required: false
+translatable: true
+default_value: {  }
+default_value_callback: ''
+settings:
+  file_directory: '[date:custom:Y]-[date:custom:m]'
+  file_extensions: pdf
+  max_filesize: ''
+  description_field: true
+  handler: 'default:file'
+  handler_settings: {  }
+field_type: file