Skip to content

Commit 734a182

Browse files
authored
Merge pull request #99 from City-of-Helsinki/UHF-10569
UHF-10569 Embed paragraphs
2 parents ba79476 + 750b86e commit 734a182

38 files changed

Lines changed: 544 additions & 88 deletions

File tree

conf/cmi/core.entity_form_display.paragraph.embed.default.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ dependencies:
1212
- paragraphs.paragraphs_type.embed
1313
module:
1414
- link
15-
- media_library
1615
- text
1716
id: paragraph.embed.default
1817
targetEntityType: paragraph
@@ -21,51 +20,45 @@ mode: default
2120
content:
2221
field_embed_code:
2322
type: string_textfield
24-
weight: 3
23+
weight: 0
2524
region: content
2625
settings:
2726
size: 60
2827
placeholder: ''
2928
third_party_settings: { }
3029
field_embed_code_id:
3130
type: string_textfield
32-
weight: 4
31+
weight: 1
3332
region: content
3433
settings:
3534
size: 60
3635
placeholder: ''
3736
third_party_settings: { }
3837
field_embed_link:
3938
type: link_default
40-
weight: 5
39+
weight: 2
4140
region: content
4241
settings:
4342
placeholder_url: ''
4443
placeholder_title: ''
4544
third_party_settings: { }
4645
field_embed_title:
4746
type: string_textfield
48-
weight: 6
47+
weight: 3
4948
region: content
5049
settings:
5150
size: 60
5251
placeholder: ''
5352
third_party_settings: { }
54-
field_embed_video:
55-
type: media_library_widget
56-
weight: 2
57-
region: content
58-
settings:
59-
media_types: { }
60-
third_party_settings: { }
6153
field_text_for_screen_readers:
6254
type: text_textarea
63-
weight: 7
55+
weight: 4
6456
region: content
6557
settings:
6658
rows: 5
6759
placeholder: ''
6860
third_party_settings: { }
6961
hidden:
7062
created: true
63+
field_embed_video: true
7164
status: true

conf/cmi/field.field.node.article.field_content.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ settings:
3535
list_of_links: list_of_links
3636
content_cards: content_cards
3737
embed: embed
38+
remote_video: remote_video
3839
negate: 0
3940
target_bundles_drag_drop:
4041
accordion:
@@ -82,6 +83,9 @@ settings:
8283
quick_links_item:
8384
weight: 35
8485
enabled: false
86+
remote_video:
87+
weight: 10
88+
enabled: true
8589
text:
8690
weight: -27
8791
enabled: true

conf/cmi/field.field.paragraph.embed.field_embed_code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ field_name: field_embed_code
1010
entity_type: paragraph
1111
bundle: embed
1212
label: 'Embed code'
13-
description: ''
13+
description: 'The embed code should be in format: https://e.infogram.com/js/dist/embed.js?abc123'
1414
required: false
1515
translatable: false
1616
default_value: { }

conf/cmi/field.field.paragraph.embed.field_embed_code_id.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ field_name: field_embed_code_id
1010
entity_type: paragraph
1111
bundle: embed
1212
label: 'Embed code ID'
13-
description: 'Script may require ID tag to work properly'
13+
description: 'The embed code ID should be in format: infogram_0_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
1414
required: false
1515
translatable: false
1616
default_value: { }

conf/cmi/field.field.paragraph.embed.field_embed_link.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ field_name: field_embed_link
1212
entity_type: paragraph
1313
bundle: embed
1414
label: 'Embed link'
15-
description: ''
15+
description: 'Embed link is intended to be used when embed code and embed code ID fields cannot be used. The embed link should be in format: https://infogram.com/name-for-the-infogram'
1616
required: false
1717
translatable: false
1818
default_value: { }

conf/cmi/field.field.paragraph.embed.field_text_for_screen_readers.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ dependencies:
66
- field.storage.paragraph.field_text_for_screen_readers
77
- paragraphs.paragraphs_type.embed
88
module:
9+
- allowed_formats
910
- text
11+
third_party_settings:
12+
allowed_formats:
13+
allowed_formats: { }
1014
id: paragraph.embed.field_text_for_screen_readers
1115
field_name: field_text_for_screen_readers
1216
entity_type: paragraph
1317
bundle: embed
14-
label: 'Text for screen readers'
15-
description: ''
18+
label: 'Assistive technology title'
19+
description: 'Users of assistive technology need a descriptive title to know what is in the embedded content.'
1620
required: false
1721
translatable: false
1822
default_value: { }
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
label: 'Upotuskoodi'
2+
description: 'Upotuskoodi tulee olla muotoa: https://e.infogram.com/js/dist/embed.js?abc123'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
label: 'Upotuskoodin tunnus'
2+
description: 'Upotoskoodin tunnus tulee olla muotoa: infogram_0_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
label: 'Upotuksen URL'
2+
description: 'Upotuksen URL:ia voidaan käyttää kun upotuskoodi ja upotuskoodin tunnus kenttiä ei ole saatavilla. Upotuksen URL kenttään voi lisätä vain infogramin URL-osoitteita ja niiden tulee olla muotoa: https://infogram.com/kaavion-nimi'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
label: 'Upotuksen otsikko'
2+
description: 'Upotuksen otsikko liitetään Iframe title attribuuttiin kun upotuksen URL kenttä on täytetty. Saavutettavuuden kannalta otsikon täyttäminen on suositeltua.'

0 commit comments

Comments
 (0)