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

Task/tp 1129 link lift paragraph #842

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
uuid: 004adb05-f8d4-4764-bad3-30abddc584b6
langcode: fi
status: true
dependencies:
config:
- field.field.paragraph.link_card_row.field_linklist_card
- paragraphs.paragraphs_type.link_card_row
module:
- paragraphs
id: paragraph.link_card_row.default
targetEntityType: paragraph
bundle: link_card_row
mode: default
content:
field_linklist_card:
type: paragraphs
weight: 0
region: content
settings:
title: 'Paragraafi '
title_plural: Paragraafit
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: ''
features:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
uuid: bac53521-a40b-4214-b0ed-b1c146d44ef4
langcode: fi
status: true
dependencies:
config:
- field.field.paragraph.link_card_with_image.field_lift_image
- field.field.paragraph.link_card_with_image.field_link
- field.field.paragraph.link_card_with_image.field_short_description
- field.field.paragraph.link_card_with_image.field_title
- paragraphs.paragraphs_type.link_card_with_image
module:
- link
- maxlength
- media_library
id: paragraph.link_card_with_image.default
targetEntityType: paragraph
bundle: link_card_with_image
mode: default
content:
field_lift_image:
type: media_library_widget
weight: 0
region: content
settings:
media_types: { }
third_party_settings: { }
field_link:
type: link_default
weight: 3
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_short_description:
type: string_textfield
weight: 2
region: content
settings:
size: 200
placeholder: ''
third_party_settings:
maxlength:
maxlength_js: 200
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: false
field_title:
type: string_textfield
weight: 1
region: content
settings:
size: 100
placeholder: ''
third_party_settings:
maxlength:
maxlength_js: 100
maxlength_js_label: 'Sisältö on rajattu @limit merkkiin, jäljellä: <strong>@remaining</strong>'
maxlength_js_enforce: false
hidden:
created: true
status: true
41 changes: 41 additions & 0 deletions config/sync/core.entity_view_display.media.image.card_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
uuid: 0c2166dc-52a9-484c-9aac-59064f32c4d6
langcode: fi
status: true
dependencies:
config:
- core.entity_view_mode.media.card_image
- field.field.media.image.field_media_image
- media.type.image
- responsive_image.styles.336x201
module:
- svg_image_responsive
id: media.image.card_image
targetEntityType: media
bundle: image
mode: card_image
content:
field_media_image:
type: responsive_image
label: visually_hidden
settings:
responsive_image_style: 336x201
image_link: ''
image_loading:
attribute: eager
svg_attributes:
width: null
height: null
svg_render_as_image: true
third_party_settings: { }
weight: 0
region: content
hidden:
created: true
entity_print_view_epub: true
entity_print_view_pdf: true
entity_print_view_word_docx: true
langcode: true
name: true
search_api_excerpt: true
thumbnail: true
uid: true
10 changes: 5 additions & 5 deletions config/sync/core.entity_view_display.media.image.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ content:
settings:
responsive_image_style: 480x480
image_link: ''
svg_render_as_image: '1'
svg_attributes:
width: ''
height: ''
image_loading:
attribute: eager
attribute: lazy
svg_attributes:
width: null
height: null
svg_render_as_image: true
third_party_settings: { }
weight: 0
region: content
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uuid: 9172ed8c-4cd6-402e-97cf-fd2a1d01d821
langcode: fi
status: true
dependencies:
config:
- field.field.paragraph.link_card_row.field_linklist_card
- paragraphs.paragraphs_type.link_card_row
module:
- entity_reference_revisions
id: paragraph.link_card_row.default
targetEntityType: paragraph
bundle: link_card_row
mode: default
content:
field_linklist_card:
type: entity_reference_revisions_entity_view
label: hidden
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 0
region: content
hidden:
entity_print_view_epub: true
entity_print_view_pdf: true
entity_print_view_word_docx: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
uuid: 0bb134a0-ab48-479f-9602-86c0fc296545
langcode: fi
status: true
dependencies:
config:
- field.field.paragraph.link_card_with_image.field_lift_image
- field.field.paragraph.link_card_with_image.field_link
- field.field.paragraph.link_card_with_image.field_short_description
- field.field.paragraph.link_card_with_image.field_title
- paragraphs.paragraphs_type.link_card_with_image
module:
- link
id: paragraph.link_card_with_image.default
targetEntityType: paragraph
bundle: link_card_with_image
mode: default
content:
field_lift_image:
type: entity_reference_entity_view
label: hidden
settings:
view_mode: card_image
link: false
third_party_settings: { }
weight: 0
region: content
field_link:
type: link
label: hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 3
region: content
field_short_description:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
region: content
field_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
hidden:
entity_print_view_epub: true
entity_print_view_pdf: true
entity_print_view_word_docx: true
search_api_excerpt: true
11 changes: 11 additions & 0 deletions config/sync/core.entity_view_mode.media.card_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: da27cf6f-119f-44db-8de4-55fe2499bfe0
langcode: fi
status: true
dependencies:
module:
- media
id: media.card_image
label: Linkkinostokortti
description: ''
targetEntityType: media
cache: true
8 changes: 8 additions & 0 deletions config/sync/field.field.node.basic_page.field_paragraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- node.type.basic_page
- paragraphs.paragraphs_type.content
- paragraphs.paragraphs_type.full_width_card_lift
- paragraphs.paragraphs_type.link_card_row
- paragraphs.paragraphs_type.quick_link_row
- paragraphs.paragraphs_type.url_and_file
module:
Expand All @@ -27,6 +28,7 @@ settings:
target_bundles:
content: content
full_width_card_lift: full_width_card_lift
link_card_row: link_card_row
url_and_file: url_and_file
quick_link_row: quick_link_row
negate: 0
Expand Down Expand Up @@ -55,6 +57,12 @@ settings:
link:
weight: 21
enabled: false
link_card_row:
weight: 25
enabled: true
link_card_with_image:
weight: 26
enabled: false
long_text_field_with_toolbar:
weight: 22
enabled: false
Expand Down
18 changes: 16 additions & 2 deletions config/sync/field.field.node.landing_page.field_paragraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- node.type.landing_page
- paragraphs.paragraphs_type.content_card_lift
- paragraphs.paragraphs_type.header_description_link
- paragraphs.paragraphs_type.link_card_row
module:
- entity_reference_revisions
id: node.landing_page.field_paragraph
Expand All @@ -25,6 +26,7 @@ settings:
target_bundles:
content_card_lift: content_card_lift
header_description_link: header_description_link
link_card_row: link_card_row
negate: 0
target_bundles_drag_drop:
contact_information:
Expand All @@ -42,21 +44,33 @@ settings:
content_link_file_guide:
weight: 20
enabled: false
content_list_lift_header_icon:
weight: 9
full_width_card_lift:
weight: 21
enabled: false
header_description_link:
weight: 22
enabled: true
link:
weight: 23
enabled: false
link_card_row:
weight: 28
enabled: true
link_card_with_image:
weight: 24
enabled: false
long_text_field_with_toolbar:
weight: 24
enabled: false
municipality_guide:
weight: 25
enabled: false
quick_link:
weight: 27
enabled: false
quick_link_row:
weight: 28
enabled: false
service_language:
weight: 26
enabled: false
Expand Down
Loading