Skip to content

Commit

Permalink
D8CORE-7213 Update list paragraphs to h3 with a require headline
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Feb 15, 2024
1 parent 30b2324 commit ee88f9c
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ field_name: su_list_headline
entity_type: paragraph
bundle: stanford_lists
label: Headline
description: 'This is the main headline for the list paragraph. The headline will appear above the list view in large font.'
required: false
description: 'This is the main headline for the list paragraph. The headline will appear above the list view in large font. This heading is required to build correct heading structure for accessibility purposes.'
required: true
translatable: false
default_value: { }
default_value_callback: ''
Expand Down
77 changes: 68 additions & 9 deletions config/sync/views.view.stanford_basic_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.stanford_card
- core.entity_view_mode.node.stanford_h3_card
- field.storage.node.su_page_description
- field.storage.node.su_page_image
- field.storage.paragraph.su_banner_image
Expand Down Expand Up @@ -33,6 +33,59 @@ display:
display_options:
title: 'Basic Page Types'
fields:
view_node:
id: view_node
table: node
field: view_node
relationship: none
group_type: group
admin_label: ''
entity_type: node
plugin_id: entity_link
label: ''
exclude: true
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
text: view
output_url_as_text: true
absolute: true
title:
id: title
table: node_field_data
Expand All @@ -46,8 +99,8 @@ display:
alter:
alter_text: false
text: ''
make_link: false
path: ''
make_link: true
path: '{{ view_node }}'
absolute: false
external: false
replace_spaces: false
Expand All @@ -74,7 +127,7 @@ display:
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
Expand All @@ -83,9 +136,9 @@ display:
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
type: entity_title_heading
settings:
link_to_entity: true
tag: h3
group_column: value
group_columns: { }
group_rows: true
Expand Down Expand Up @@ -514,6 +567,7 @@ display:
options:
default_field_elements: 0
inline:
view_node: 0
title: 0
su_page_description: 0
su_banner_image: 0
Expand All @@ -530,12 +584,17 @@ display:
cta: default
date-stacked: default
hero: default
link: default
lockup: a
media: default
course_list: default
course_vertical_teaser: default
events_card: default
events_list: default
news-list: default
news-vertical-teaser: default
pattern_mapping:
'views_row:title':
destination: title
destination: description
weight: 0
plugin: views_row
source: title
Expand Down Expand Up @@ -659,7 +718,7 @@ display:
type: 'entity:node'
options:
relationship: none
view_mode: stanford_card
view_mode: stanford_h3_card
block_category: 'Basic Page Type Lists (Views)'
cache_metadata:
max-age: -1
Expand Down
40 changes: 9 additions & 31 deletions config/sync/views.view.stanford_courses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -665,17 +665,6 @@ display:
separator: ''
hide_empty: 0
pattern: course_list
variants:
alert: default
brandbar: default
button: default
card: default
cta: default
date-stacked: default
hero: default
link: default
lockup: a
media: default
pattern_mapping:
'views_row:title':
destination: course_list_title
Expand Down Expand Up @@ -722,6 +711,7 @@ display:
weight: 8
plugin: views_row
source: edit_node
pattern_variant: h3_header
query:
type: views_query
options:
Expand Down Expand Up @@ -2732,25 +2722,17 @@ display:
options:
default_field_elements: 0
inline:
title: 0
su_course_academic_year: 0
su_course_code: 0
su_course_link: 0
su_course_subject: 0
su_course_code: 0
su_course_academic_year: 0
title: 0
body: 0
su_course_instructors: 0
view_node: 0
su_course_id: 0
separator: ''
hide_empty: 0
pattern: course_vertical_teaser
variants:
alert: default
brandbar: default
button: default
card: default
cta: default
date-stacked: default
hero: default
link: default
lockup: a
media: default
pattern_mapping:
'views_row:title':
destination: course_title
Expand All @@ -2772,11 +2754,7 @@ display:
weight: 3
plugin: views_row
source: su_course_code
'views_row:su_course_link':
destination: course_url
weight: 4
plugin: views_row
source: su_course_link
pattern_variant: h3_header
fields:
su_course_subject:
id: su_course_subject
Expand Down
12 changes: 1 addition & 11 deletions config/sync/views.view.stanford_event_series.yml
Original file line number Diff line number Diff line change
Expand Up @@ -529,17 +529,6 @@ display:
separator: ''
hide_empty: 1
pattern: events_list
variants:
media: default
lockup: a
hero: default
brandbar: default
link: default
button: default
date-stacked: default
cta: default
alert: default
card: default
pattern_mapping:
'views_row:su_event_series_type':
destination: event_type
Expand Down Expand Up @@ -571,6 +560,7 @@ display:
weight: 5
plugin: views_row
source: su_event_series_dek
pattern_variant: h3_header
query:
type: views_query
options:
Expand Down
59 changes: 25 additions & 34 deletions config/sync/views.view.stanford_events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.stanford_card
- core.entity_view_mode.node.stanford_h3_card
- field.storage.node.su_event_alt_loc
- field.storage.node.su_event_date_time
- field.storage.node.su_event_dek
Expand Down Expand Up @@ -787,7 +788,7 @@ display:
type: 'entity:node'
options:
relationship: none
view_mode: stanford_card
view_mode: stanford_h3_card
arguments:
term_node_taxonomy_name_depth:
id: term_node_taxonomy_name_depth
Expand Down Expand Up @@ -1354,50 +1355,50 @@ display:
group_type: group
admin_label: ''
label: ''
exclude: false
exclude: 0
alter:
alter_text: true
alter_text: 1
text: "<a class=\"su-link{% if su_event_source %} su-link--external{% endif %}\" href=\"{% if su_event_source %}{{ su_event_source }}{% else %}{{ view_node }}{% endif %}\">\r\n {{ title }}\r\n</a>"
make_link: false
make_link: 0
path: ''
absolute: false
external: false
replace_spaces: false
absolute: 0
external: 0
replace_spaces: 0
path_case: none
trim_whitespace: false
trim_whitespace: 0
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: false
ellipsis: false
more_link: false
nl2br: 0
max_length: '0'
word_boundary: 0
ellipsis: 0
more_link: 0
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
strip_tags: 0
trim: 0
preserve_tags: ''
html: false
element_type: h2
html: 0
element_type: h3
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
element_default_classes: 1
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
hide_empty: 0
empty_zero: 0
hide_alter_empty: 1
click_sort_column: value
type: string
settings:
link_to_entity: false
link_to_entity: 0
group_column: value
group_columns: { }
group_rows: true
Expand All @@ -1407,7 +1408,7 @@ display:
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
field_api_classes: 0
entity_type: node
entity_field: title
plugin_id: field
Expand Down Expand Up @@ -2087,17 +2088,6 @@ display:
separator: ''
hide_empty: 1
pattern: events_list
variants:
alert: default
brandbar: default
button: default
card: default
cta: default
date-stacked: default
hero: default
link: default
lockup: a
media: default
pattern_mapping:
'views_row:title':
destination: headline
Expand Down Expand Up @@ -2159,6 +2149,7 @@ display:
weight: 11
plugin: views_row
source: edit_node
pattern_variant: h3_header
arguments:
term_node_taxonomy_name_depth:
id: term_node_taxonomy_name_depth
Expand Down
Loading

0 comments on commit ee88f9c

Please sign in to comment.