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

SDSS-594: Added media contacts entity and field #217

Merged
merged 26 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
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
Expand Up @@ -17,6 +17,7 @@ dependencies:
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_magazine_topics
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_news_banner_caption
- field.field.node.stanford_news.su_sdss_news_dek_long
- field.field.node.stanford_news.su_sdss_news_focal_areas
Expand All @@ -31,6 +32,7 @@ dependencies:
- change_labels
- datetime
- field_group
- inline_entity_form
- layout_paragraphs
- link
- media_library
Expand Down Expand Up @@ -113,7 +115,7 @@ third_party_settings:
label: 'Related Fields'
region: content
parent_name: ''
weight: 4
weight: 3
format_type: details
format_settings:
classes: ''
Expand All @@ -129,31 +131,31 @@ mode: default
content:
publish_on:
type: datetime_timestamp_no_default
weight: 11
weight: 10
region: content
settings: { }
third_party_settings: { }
scheduler_settings:
weight: 10
weight: 9
region: content
settings: { }
third_party_settings: { }
stanford_intranet__access:
type: entity_access
weight: 8
weight: 7
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 7
weight: 6
region: content
settings:
display_label: true
third_party_settings: { }
su_metatags:
type: metatag_firehose
weight: 9
weight: 8
region: content
settings:
sidebar: true
Expand Down Expand Up @@ -184,7 +186,7 @@ content:
third_party_settings: { }
su_news_components:
type: layout_paragraphs
weight: 5
weight: 4
region: content
settings:
preview_view_mode: default
Expand Down Expand Up @@ -236,6 +238,29 @@ content:
create_new_levels: false
force_deepest: false
third_party_settings: { }
su_sdss_media_contacts:
type: inline_entity_form_complex
weight: 11
region: content
settings:
form_mode: default
override_labels: true
label_singular: 'Media Contact'
label_plural: 'Media Contacts'
allow_new: true
allow_existing: true
match_operator: CONTAINS
allow_duplicate: false
collapsible: false
collapsed: false
revision: false
removed_reference: keep
third_party_settings:
change_labels:
add_another: 'Add another Media Contact'
field_label_overwrite: ''
hide_add_another: 0
force_single_cardinality: 0
su_sdss_news_banner_caption:
type: text_textarea
weight: 12
Expand Down Expand Up @@ -304,7 +329,7 @@ content:
third_party_settings: { }
su_sdss_related_content:
type: entity_reference_autocomplete
weight: 53
weight: 12
region: content
settings:
match_operator: CONTAINS
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
uuid: 39342ff3-fba5-4a31-99a6-e5cf61f5cfcb
langcode: en
status: true
dependencies:
config:
- field.field.sdss_entity.sdss_media_contact.su_sdss_contact_email
- field.field.sdss_entity.sdss_media_contact.su_sdss_contact_name
- field.field.sdss_entity.sdss_media_contact.su_sdss_contact_org
- field.field.sdss_entity.sdss_media_contact.su_sdss_contact_phone
- sdss_entities.sdss_entity_type.sdss_media_contact
module:
- telephone
id: sdss_entity.sdss_media_contact.default
targetEntityType: sdss_entity
bundle: sdss_media_contact
mode: default
content:
su_sdss_contact_email:
type: email_default
weight: 3
region: content
settings:
placeholder: ''
size: 60
third_party_settings: { }
su_sdss_contact_name:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
su_sdss_contact_org:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
su_sdss_contact_phone:
type: telephone_default
weight: 4
region: content
settings:
placeholder: ''
third_party_settings: { }
hidden: { }
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_magazine_topics
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_news_banner_caption
- field.field.node.stanford_news.su_sdss_news_dek_long
- field.field.node.stanford_news.su_sdss_news_focal_areas
Expand All @@ -37,6 +38,7 @@ dependencies:
- layout_builder
- layout_builder_restrictions
- layout_library
- link
- stanford_news
- text
- user
Expand Down Expand Up @@ -266,6 +268,29 @@ third_party_settings:
class: su-news-components
weight: 0
additional: { }
6f0a70d8-cf06-4d64-a18a-260afad1f54e:
uuid: 6f0a70d8-cf06-4d64-a18a-260afad1f54e
region: main
configuration:
id: 'field_block:node:stanford_news:su_sdss_media_contacts'
label: 'Media Contacts'
label_display: visible
provider: layout_builder
context_mapping:
entity: layout_builder.entity
view_mode: view_mode
formatter:
type: entity_reference_entity_view
label: hidden
settings:
view_mode: default
third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
weight: 1
additional: { }
third_party_settings: { }
-
layout_id: jumpstart_ui_one_column
Expand Down Expand Up @@ -521,6 +546,14 @@ content:
third_party_settings: { }
weight: 9
region: main
su_sdss_media_contacts:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 18
region: main
su_sdss_news_banner_caption:
type: text_default
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_magazine_topics
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_news_banner_caption
- field.field.node.stanford_news.su_sdss_news_dek_long
- field.field.node.stanford_news.su_sdss_news_focal_areas
Expand Down Expand Up @@ -136,6 +137,7 @@ hidden:
su_news_dek: true
su_sdss_import_source: true
su_sdss_magazine_topics: true
su_sdss_media_contacts: true
su_sdss_news_banner_caption: true
su_sdss_news_focal_areas: true
su_sdss_news_news_source: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_magazine_topics
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_news_banner_caption
- field.field.node.stanford_news.su_sdss_news_dek_long
- field.field.node.stanford_news.su_sdss_news_focal_areas
Expand Down Expand Up @@ -183,6 +184,7 @@ hidden:
su_news_dek: true
su_sdss_import_source: true
su_sdss_magazine_topics: true
su_sdss_media_contacts: true
su_sdss_news_banner_caption: true
su_sdss_news_focal_areas: true
su_sdss_news_organization: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
uuid: ef48ed97-a142-4f1f-9593-65aa65a3bb53
langcode: en
status: true
dependencies:
config:
- field.field.sdss_entity.sdss_media_contact.su_sdss_contact_email
- field.field.sdss_entity.sdss_media_contact.su_sdss_contact_name
- field.field.sdss_entity.sdss_media_contact.su_sdss_contact_org
- field.field.sdss_entity.sdss_media_contact.su_sdss_contact_phone
- sdss_entities.sdss_entity_type.sdss_media_contact
module:
- ds
- layout_builder
- layout_builder_restrictions
- layout_library
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
layout_library:
enable: false
layout_builder_restrictions:
allowed_block_categories: { }
entity_view_mode_restriction:
allowed_layouts: { }
denylisted_blocks: { }
allowlisted_blocks: { }
restricted_categories: { }
ds:
layout:
id: pattern_sdss-media-contact
library: null
disable_css: false
entity_classes: all_classes
settings:
pattern:
field_templates: default
regions:
media_contact_name:
- su_sdss_contact_name
media_contact_email:
- su_sdss_contact_email
media_contact_phone:
- su_sdss_contact_phone
media_contact_org:
- su_sdss_contact_org
id: sdss_entity.sdss_media_contact.default
targetEntityType: sdss_entity
bundle: sdss_media_contact
mode: default
content:
su_sdss_contact_email:
type: basic_string
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: media_contact_email
su_sdss_contact_name:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: media_contact_name
su_sdss_contact_org:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 3
region: media_contact_org
su_sdss_contact_phone:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
region: media_contact_phone
hidden:
label: true
layout_builder__layout: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ module:
rh_taxonomy: 0
role_delegation: 0
scheduler: 0
sdss_entities: 0
sdss_layout_paragraphs: 0
search_api: 0
search_api_db: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ disabled: false
field_template: false
ft-default: default
ft-show-colon: false
ft-layout-builder: false
classes:
region: { }
field: { }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fields_extra: false
fields_extra_list: { }
field_permissions: false
switch_field: false
hidden_region: false
region_to_block: false
override_node_revision: false
override_node_revision_view_mode: diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: ebb745e4-bc25-4c0c-8f02-a1b7642563c8
langcode: en
status: true
dependencies:
config:
- field.storage.node.su_sdss_media_contacts
- node.type.stanford_news
- sdss_entities.sdss_entity_type.sdss_media_contact
id: node.stanford_news.su_sdss_media_contacts
field_name: su_sdss_media_contacts
entity_type: node
bundle: stanford_news
label: 'Media Contacts'
description: 'The media contacts for the article.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:sdss_entity'
handler_settings:
target_bundles:
sdss_media_contact: sdss_media_contact
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
Loading
Loading