Skip to content

Commit

Permalink
D8CORE-7425 Display dek and date field on news cards
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jul 1, 2024
1 parent b17401d commit a86d0ee
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 9 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"drupal/block_content_permissions": "^1.8",
"drupal/change_labels": "^1.0",
"drupal/chosen": "^4.0",
"drupal/ckeditor5_icons": "^1.1",
"drupal/colorbox": "^2.0",
"drupal/components": "^3.0",
"drupal/conditional_fields": "^4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ third_party_settings:
settings:
pattern:
field_templates: only_content
variant: default
regions:
news_vertical_teaser_image:
- su_news_featured_media
news_vertical_teaser_headline:
- node_title
date:
- node_post_date
dek:
- su_news_dek
news_topics:
- su_news_topics
news_source:
Expand All @@ -50,7 +55,7 @@ third_party_settings:
fields:
'dynamic_token_field:node-news_content_url':
plugin_id: 'dynamic_token_field:node-news_content_url'
weight: 4
weight: 6
label: hidden
formatter: default
node_title:
Expand All @@ -62,11 +67,24 @@ third_party_settings:
link: false
wrapper: ''
class: ''
node_post_date:
plugin_id: node_post_date
weight: 2
label: hidden
formatter: ds_post_date_stanford_month_date_year
id: node.stanford_news.stanford_card
targetEntityType: node
bundle: stanford_news
mode: stanford_card
content:
su_news_dek:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 3
region: dek
su_news_featured_media:
type: media_multimedia_formatter
label: hidden
Expand Down Expand Up @@ -100,7 +118,7 @@ content:
third_party_settings:
field_formatter_class:
class: ''
weight: 3
weight: 5
region: news_source
su_news_topics:
type: entity_reference_list_label_class
Expand All @@ -114,7 +132,7 @@ content:
class: ''
ds:
ds_limit: '3'
weight: 2
weight: 4
region: news_topics
hidden:
layout_builder__layout: true
Expand All @@ -127,7 +145,6 @@ hidden:
su_news_banner_media_caption: true
su_news_byline: true
su_news_components: true
su_news_dek: true
su_news_hide_social: true
su_news_publishing_date: true
su_shared_tags: true
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ dependencies:
- field.field.node.stanford_news.su_shared_tags
- node.type.stanford_news
module:
- datetime
- ds
- element_class_formatter
- empty_fields
- field_formatter_class
- field_label
- layout_builder
- link
- stanford_media
Expand All @@ -43,6 +46,10 @@ third_party_settings:
- su_news_featured_media
news_vertical_teaser_headline:
- node_title
date:
- su_news_publishing_date
dek:
- su_news_dek
news_topics:
- su_news_topics
news_source:
Expand All @@ -52,7 +59,7 @@ third_party_settings:
fields:
'dynamic_token_field:node-news_content_url':
plugin_id: 'dynamic_token_field:node-news_content_url'
weight: 4
weight: 6
label: hidden
formatter: default
node_title:
Expand All @@ -74,6 +81,14 @@ targetEntityType: node
bundle: stanford_news
mode: stanford_h3_card
content:
su_news_dek:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 3
region: dek
su_news_featured_media:
type: media_multimedia_formatter
label: hidden
Expand All @@ -95,6 +110,22 @@ content:
class: ''
weight: 0
region: news_vertical_teaser_image
su_news_publishing_date:
type: datetime_default
label: hidden
settings:
timezone_override: ''
format_type: stanford_month_date_year
third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
field_label:
label_value: ''
label_tag: ''
weight: 2
region: date
su_news_source:
type: link
label: hidden
Expand All @@ -107,7 +138,7 @@ content:
third_party_settings:
field_formatter_class:
class: ''
weight: 3
weight: 5
region: news_source
su_news_topics:
type: entity_reference_list_label_class
Expand All @@ -121,7 +152,7 @@ content:
class: ''
ds:
ds_limit: '3'
weight: 2
weight: 4
region: news_topics
hidden:
layout_builder__layout: true
Expand All @@ -134,7 +165,5 @@ hidden:
su_news_banner_media_caption: true
su_news_byline: true
su_news_components: true
su_news_dek: true
su_news_hide_social: true
su_news_publishing_date: true
su_shared_tags: true
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module:
chosen: 0
chosen_lib: 0
ckeditor5: 0
ckeditor5_icons: 0
ckeditor5_plugins: 0
colorbox: 0
components: 0
Expand Down
10 changes: 10 additions & 0 deletions config/sync/editor.editor.stanford_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ settings:
- '|'
- blockQuote
- drupalMedia
- icon
- '|'
- superscript
- subscript
Expand Down Expand Up @@ -96,6 +97,15 @@ settings:
- heading3
- heading4
- heading5
ckeditor5_icons_icon:
fa_version: '5'
fa_styles:
- solid
- regular
- brands
custom_metadata: false
async_metadata: true
recommended_enabled: false
ckeditor5_list:
properties:
reversed: false
Expand Down

0 comments on commit a86d0ee

Please sign in to comment.