Skip to content

Commit

Permalink
VACMS-15276: Adds YouTube field (#15450)
Browse files Browse the repository at this point in the history
* VACMS-15276: Adds YouTube field

* VACMS-15276: Adding field storage for YouTube
  • Loading branch information
omahane authored Nov 1, 2023
1 parent 77b2cea commit 66aedb8
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies:
- field.field.node.health_care_region_page.field_va_health_connect_phone
- field.field.node.health_care_region_page.field_vamc_ehr_system
- field.field.node.health_care_region_page.field_vamc_system_official_name
- field.field.node.health_care_region_page.field_youtube
- node.type.health_care_region_page
- workflows.workflow.editorial
module:
Expand Down Expand Up @@ -128,6 +129,7 @@ third_party_settings:
- field_twitter
- field_instagram
- field_flickr
- field_youtube
label: 'Social Media'
region: content
parent_name: group_get_updates_from_us
Expand Down Expand Up @@ -260,6 +262,7 @@ content:
maxlength: 300
counter_position: after
js_prevent_submit: false
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand All @@ -275,7 +278,7 @@ content:
third_party_settings: { }
field_flickr:
type: linkit
weight: 18
weight: 17
region: content
settings:
placeholder_url: ''
Expand All @@ -301,7 +304,7 @@ content:
third_party_settings: { }
field_instagram:
type: linkit
weight: 17
weight: 16
region: content
settings:
placeholder_url: ''
Expand All @@ -319,6 +322,7 @@ content:
maxlength: 600
counter_position: after
js_prevent_submit: false
count_only_mode: false
count_html_characters: false
textcount_status_message: '<span class="remaining_count">@remaining_count</span> characters remaining'
third_party_settings: { }
Expand Down Expand Up @@ -380,7 +384,7 @@ content:
third_party_settings: { }
field_twitter:
type: linkit
weight: 16
weight: 15
region: content
settings:
placeholder_url: ''
Expand Down Expand Up @@ -409,6 +413,16 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_youtube:
type: linkit
weight: 18
region: content
settings:
placeholder_url: ''
placeholder_title: ''
linkit_profile: default
linkit_auto_link_text: false
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies:
- field.field.node.health_care_region_page.field_va_health_connect_phone
- field.field.node.health_care_region_page.field_vamc_ehr_system
- field.field.node.health_care_region_page.field_vamc_system_official_name
- field.field.node.health_care_region_page.field_youtube
- image.style.large
- node.type.health_care_region_page
module:
Expand Down Expand Up @@ -85,6 +86,7 @@ third_party_settings:
- field_flickr
- field_instagram
- field_twitter
- field_youtube
- field_related_links
label: 'Social media and links'
parent_name: ''
Expand Down Expand Up @@ -239,6 +241,8 @@ content:
settings:
image_link: ''
image_style: large
image_loading:
attribute: lazy
third_party_settings: { }
weight: 5
region: content
Expand Down Expand Up @@ -267,7 +271,7 @@ content:
label: above
settings: { }
third_party_settings: { }
weight: 13
weight: 14
region: content
field_twitter:
type: linkit
Expand Down Expand Up @@ -305,6 +309,19 @@ content:
third_party_settings: { }
weight: 6
region: content
field_youtube:
type: linkit
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
linkit_profile: default
third_party_settings: { }
weight: 13
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ dependencies:
- field.field.node.health_care_region_page.field_va_health_connect_phone
- field.field.node.health_care_region_page.field_vamc_ehr_system
- field.field.node.health_care_region_page.field_vamc_system_official_name
- field.field.node.health_care_region_page.field_youtube
- node.type.health_care_region_page
module:
- field_group
- layout_builder
- link
- options
- telephone
- user
Expand Down Expand Up @@ -132,6 +134,18 @@ targetEntityType: node
bundle: health_care_region_page
mode: external_content
content:
breadcrumbs:
type: link
label: hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: -5
region: content
field_va_health_connect_phone:
type: telephone_link
label: above
Expand Down Expand Up @@ -169,6 +183,7 @@ hidden:
field_system_menu: true
field_twitter: true
field_vamc_system_official_name: true
field_youtube: true
langcode: true
links: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,28 @@ dependencies:
- field.field.node.health_care_region_page.field_va_health_connect_phone
- field.field.node.health_care_region_page.field_vamc_ehr_system
- field.field.node.health_care_region_page.field_vamc_system_official_name
- field.field.node.health_care_region_page.field_youtube
- node.type.health_care_region_page
module:
- link
- user
id: node.health_care_region_page.teaser
targetEntityType: node
bundle: health_care_region_page
mode: teaser
content:
breadcrumbs:
type: link
label: hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: -5
region: content
links:
settings: { }
third_party_settings: { }
Expand Down Expand Up @@ -66,5 +80,6 @@ hidden:
field_va_health_connect_phone: true
field_vamc_ehr_system: true
field_vamc_system_official_name: true
field_youtube: true
langcode: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 9365ca57-747d-4378-9944-93438f454038
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_youtube
- node.type.health_care_region_page
module:
- link
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: node.health_care_region_page.field_youtube
field_name: field_youtube
entity_type: node
bundle: health_care_region_page
label: YouTube
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
title: 2
link_type: 16
field_type: link
19 changes: 19 additions & 0 deletions config/sync/field.storage.node.field_youtube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 90bbf561-fc8f-407b-91b2-57fe172e4186
langcode: en
status: true
dependencies:
module:
- link
- node
id: node.field_youtube
field_name: field_youtube
entity_type: node
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit 66aedb8

Please sign in to comment.