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

OEL-2070: Style the gallery paragraph. #188

Merged
merged 16 commits into from
Nov 9, 2022
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
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"drupal/daterange_compact": "^2.0",
"drupal/twig_field_value": "^2.0",
"openeuropa/composer-artifacts": "^1.0.0-alpha1",
"openeuropa/oe_bootstrap_theme": "^1.0.0-beta7"
"openeuropa/oe_bootstrap_theme": "0.1.202211090950"
},
"require-dev": {
"composer/installers": "^1.11",
Expand Down Expand Up @@ -45,7 +45,7 @@
"openeuropa/oe_corporate_blocks": "^4.8",
"openeuropa/oe_list_pages": "^0.20",
"openeuropa/oe_multilingual": "^1.11",
"openeuropa/oe_paragraphs": "^1.14",
"openeuropa/oe_paragraphs": "^1.16",
"openeuropa/oe_starter_content": "^1.0.0-beta3",
"openeuropa/task-runner-drupal-project-symlink": "^1.0-beta5",
"phpspec/prophecy-phpunit": "^2",
Expand Down Expand Up @@ -90,6 +90,9 @@
"patches": {
"drupal/entity_reference_revisions": {
"https://www.drupal.org/project/entity_reference_revisions/issues/2937835": "https://www.drupal.org/files/issues/2021-03-26/entity_reference_revisions-field_formatter_label-2937835-36.patch"
},
"openeuropa/oe_paragraphs": {
"master": "https://github.com/openeuropa/oe_paragraphs/compare/1.16.0..master.diff"
}
},
"drupal-scaffold": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.oe_w_pattern_gallery_item
- field.field.media.av_portal_photo.oe_media_avportal_photo
- media.type.av_portal_photo
module:
- image
- media_avportal
- oe_whitelabel_helper
id: media.av_portal_photo.oe_w_pattern_gallery_item
targetEntityType: media
bundle: av_portal_photo
mode: oe_w_pattern_gallery_item
content:
name:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: caption_title
weight: 0
region: content
oe_media_avportal_photo:
type: avportal_photo
label: hidden
settings:
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: media
weight: 2
region: content
thumbnail:
type: image
label: hidden
settings:
image_link: ''
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: thumbnail
weight: 1
region: content
hidden:
created: true
langcode: true
search_api_excerpt: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.oe_w_pattern_gallery_item
- field.field.media.av_portal_video.oe_media_avportal_video
- media.type.av_portal_video
module:
- image
- media_avportal
- oe_whitelabel_helper
id: media.av_portal_video.oe_w_pattern_gallery_item
targetEntityType: media
bundle: av_portal_video
mode: oe_w_pattern_gallery_item
content:
name:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: caption_title
weight: 0
region: content
oe_media_avportal_video:
type: avportal_video
label: hidden
settings:
max_width: 640
max_height: 390
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: media
weight: 2
region: content
thumbnail:
type: image
label: hidden
settings:
image_link: ''
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: thumbnail
weight: 1
region: content
hidden:
created: true
langcode: true
search_api_excerpt: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.oe_w_pattern_gallery_item
- field.field.media.image.oe_media_image
- media.type.image
module:
- image
- oe_whitelabel_helper
id: media.image.oe_w_pattern_gallery_item
targetEntityType: media
bundle: image
mode: oe_w_pattern_gallery_item
content:
name:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: caption_title
weight: 0
region: content
oe_media_image:
type: image
label: hidden
settings:
image_link: ''
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: media
weight: 2
region: content
thumbnail:
type: image
label: hidden
settings:
image_link: ''
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: thumbnail
weight: 1
region: content
hidden:
created: true
langcode: true
search_api_excerpt: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.oe_w_pattern_gallery_item
- field.field.media.remote_video.oe_media_oembed_video
- media.type.remote_video
module:
- image
- media
- oe_whitelabel_helper
id: media.remote_video.oe_w_pattern_gallery_item
targetEntityType: media
bundle: remote_video
mode: oe_w_pattern_gallery_item
content:
name:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: caption_title
weight: 0
region: content
oe_media_oembed_video:
type: oembed
label: hidden
settings:
max_width: 0
max_height: 0
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: media
weight: 2
region: content
thumbnail:
type: image
label: hidden
settings:
image_link: ''
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: thumbnail
weight: 1
region: content
hidden:
created: true
langcode: true
search_api_excerpt: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
langcode: en
status: true
dependencies:
module:
- media
id: media.oe_w_pattern_gallery_item
label: 'Gallery item (gallery pattern)'
targetEntityType: media
cache: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.oe_w_pattern_gallery_item
- field.field.media.av_portal_photo.oe_media_avportal_photo
- media.type.av_portal_photo
module:
- image
- media_avportal
- oe_whitelabel_helper
id: media.av_portal_photo.oe_w_pattern_gallery_item
targetEntityType: media
bundle: av_portal_photo
mode: oe_w_pattern_gallery_item
content:
name:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: caption_title
weight: 0
region: content
oe_media_avportal_photo:
type: avportal_photo
label: hidden
settings:
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: media
weight: 2
region: content
thumbnail:
type: image
label: hidden
settings:
image_link: ''
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: thumbnail
weight: 1
region: content
hidden:
created: true
langcode: true
search_api_excerpt: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.oe_w_pattern_gallery_item
- field.field.media.av_portal_video.oe_media_avportal_video
- media.type.av_portal_video
module:
- image
- media_avportal
- oe_whitelabel_helper
id: media.av_portal_video.oe_w_pattern_gallery_item
targetEntityType: media
bundle: av_portal_video
mode: oe_w_pattern_gallery_item
content:
name:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: caption_title
weight: 0
region: content
oe_media_avportal_video:
type: avportal_video
label: hidden
settings:
max_width: 640
max_height: 390
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: media
weight: 2
region: content
thumbnail:
type: image
label: hidden
settings:
image_link: ''
image_style: ''
third_party_settings:
oe_whitelabel_helper:
pattern_mapping: thumbnail
weight: 1
region: content
hidden:
created: true
langcode: true
search_api_excerpt: true
uid: true
Loading