Skip to content

Commit

Permalink
PE-420 Fix fields on media library form display modes (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
odensc authored Dec 8, 2022
1 parent a55b961 commit 2fb7544
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,13 @@ dependencies:
- media.type.document
module:
- file
- scheduler
_core:
default_config_hash: dcpfpqyLXOSGpulacMAJW3H-G34_LeNsjdfxd1_oCfY
id: media.document.media_library
targetEntityType: media
bundle: document
mode: media_library
content:
created:
type: datetime_timestamp
weight: 7
region: content
settings: { }
third_party_settings: { }
field_description:
type: string_textarea
weight: 2
Expand All @@ -38,7 +31,7 @@ content:
third_party_settings: { }
field_display_in_group:
type: entity_reference_autocomplete
weight: 3
weight: 4
region: content
settings:
match_operator: CONTAINS
Expand All @@ -55,21 +48,14 @@ content:
third_party_settings: { }
field_tags:
type: entity_reference_autocomplete
weight: 4
weight: 3
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
name:
type: string_textfield
weight: 0
Expand All @@ -78,38 +64,23 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
publish_on:
type: datetime_timestamp_no_default
weight: 30
region: content
settings: { }
third_party_settings: { }
scheduler_settings:
weight: 20
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 5
region: content
settings:
display_label: true
third_party_settings: { }
uid:
type: options_select
weight: 6
region: content
settings: { }
third_party_settings: { }
unpublish_on:
type: datetime_timestamp_no_default
weight: 30
region: content
settings: { }
third_party_settings: { }
hidden:
created: true
field_file_size: true
field_mime_type: true
field_search_keywords: true
langcode: true
path: true
publish_on: true
publish_state: true
scheduler_settings: true
uid: true
unpublish_on: true
unpublish_state: true
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,25 @@ mode: media_library
content:
field_display_in_group:
type: entity_reference_autocomplete
weight: 2
weight: 3
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_media_media_remote:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_preview_image:
type: image_image
weight: 3
weight: 4
region: content
settings:
progress_indicator: throbber
Expand All @@ -51,14 +59,19 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 5
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
field_media_media_remote: true
langcode: true
path: true
publish_on: true
publish_state: true
status: true
uid: true
unpublish_on: true
unpublish_state: true
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,20 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
langcode: true
path: true
status: true
publish_on: true
publish_state: true
scheduler_settings: true
uid: true
unpublish_on: true
unpublish_state: true
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ content:
third_party_settings: { }
field_file_size:
type: number
weight: 4
weight: 5
region: content
settings:
placeholder: ''
Expand All @@ -51,7 +51,7 @@ content:
third_party_settings: { }
field_mime_type:
type: string_textfield
weight: 5
weight: 6
region: content
settings:
size: 60
Expand All @@ -65,10 +65,21 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 4
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
field_tags: true
langcode: true
path: true
status: true
publish_on: true
publish_state: true
scheduler_settings: true
uid: true
unpublish_on: true
unpublish_state: true
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,20 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
langcode: true
path: true
status: true
publish_on: true
publish_state: true
scheduler_settings: true
uid: true
unpublish_on: true
unpublish_state: true

0 comments on commit 2fb7544

Please sign in to comment.