Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECCW 699: Management of media files #480

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions config/default/core.entity_form_display.media.document.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.document.field_category
- field.field.media.document.field_media_document
- media.type.document
module:
Expand All @@ -17,10 +18,20 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 10
weight: 4
region: content
settings: { }
third_party_settings: { }
field_category:
type: entity_reference_autocomplete
weight: 1
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_media_document:
type: file_generic
weight: 0
Expand All @@ -30,20 +41,20 @@ content:
third_party_settings: { }
path:
type: path
weight: 4
weight: 2
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 100
weight: 5
region: content
settings:
display_label: true
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
weight: 3
region: content
settings:
match_operator: CONTAINS
Expand Down
13 changes: 12 additions & 1 deletion config/default/core.entity_form_display.media.image.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- image.style.thumbnail
- media.type.image
Expand All @@ -22,6 +23,16 @@ content:
region: content
settings: { }
third_party_settings: { }
field_category:
type: entity_reference_autocomplete
weight: 2
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_media_image:
type: image_widget_crop
weight: 1
Expand Down Expand Up @@ -58,7 +69,7 @@ content:
third_party_settings: { }
status:
type: boolean_checkbox
weight: 7
weight: 6
region: content
settings:
display_label: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.remote_video.field_category
- field.field.media.remote_video.field_media_oembed_video
- media.type.remote_video
module:
Expand All @@ -17,10 +18,20 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 10
weight: 3
region: content
settings: { }
third_party_settings: { }
field_category:
type: entity_reference_autocomplete
weight: 1
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_media_oembed_video:
type: oembed_textfield
weight: 0
Expand All @@ -31,20 +42,20 @@ content:
third_party_settings: { }
path:
type: path
weight: 30
weight: 4
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 100
weight: 5
region: content
settings:
display_label: true
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 4
weight: 2
region: content
settings:
match_operator: CONTAINS
Expand Down
10 changes: 10 additions & 0 deletions config/default/core.entity_view_display.media.document.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.document.field_category
- field.field.media.document.field_media_document
- media.type.document
module:
Expand All @@ -14,6 +15,14 @@ targetEntityType: media
bundle: document
mode: default
content:
field_category:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 2
region: content
field_media_document:
type: file_default
label: visually_hidden
Expand All @@ -24,5 +33,6 @@ content:
hidden:
created: true
name: true
search_api_excerpt: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.publication
- field.field.media.document.field_category
- field.field.media.document.field_media_document
- media.type.document
module:
Expand All @@ -28,6 +29,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- media.type.image
- responsive_image.styles.3_2_image
Expand All @@ -15,6 +16,14 @@ targetEntityType: media
bundle: image
mode: default
content:
field_category:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 2
region: content
field_media_image:
type: responsive_image
label: hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.localgov_event_thumbnail
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- image.style.square_medium
- media.type.image
Expand Down Expand Up @@ -32,6 +33,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.localgov_featured
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- image.style.localgov_248x181
- media.type.image
Expand All @@ -29,6 +30,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.localgov_featured_large
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- media.type.image
- responsive_image.styles.localgov_newsroom_featured
Expand All @@ -29,6 +30,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.localgov_newsroom_teaser
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- image.style.localgov_newsroom_teaser
- media.type.image
Expand All @@ -29,6 +30,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.medium_8_7
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- image.style.medium_8_7
- media.type.image
Expand All @@ -29,6 +30,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.responsive_3x2
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- media.type.image
- responsive_image.styles.3_2_image
Expand All @@ -29,6 +30,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.responsive_banner
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- media.type.image
- responsive_image.styles.banner_28_9
Expand All @@ -29,6 +30,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.scale_crop_7_3_large
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- image.style.scale_crop_7_3_large
- media.type.image
Expand All @@ -29,6 +30,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.media.square
- field.field.media.image.field_category
- field.field.media.image.field_media_image
- media.type.image
- responsive_image.styles.square
Expand All @@ -29,6 +30,7 @@ content:
region: content
hidden:
created: true
field_category: true
name: true
search_api_excerpt: true
thumbnail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.media.remote_video.field_category
- field.field.media.remote_video.field_media_oembed_video
- media.type.remote_video
module:
Expand All @@ -14,6 +15,14 @@ targetEntityType: media
bundle: remote_video
mode: default
content:
field_category:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 2
region: content
field_media_oembed_video:
type: oembed
label: hidden
Expand Down
Loading
Loading