Skip to content

Commit

Permalink
Swapped trimmed body with summary
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyoung3 committed Sep 17, 2024
1 parent c460dc3 commit 6fb9845
Show file tree
Hide file tree
Showing 12 changed files with 484,868 additions and 399 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ dependencies:
- layout_builder
- layout_builder_restrictions
- layout_library
- smart_trim
- stanford_media
- text
- user
third_party_settings:
layout_builder:
Expand All @@ -64,35 +64,15 @@ third_party_settings:
disable_css: false
entity_classes: all_classes
settings:
wrappers:
title: div
summary: div
image: div
time_commitment: div
service_theme: div
application_deadline: div
event_date: div
course_date: div
sponsoring_unit: div
location: div
when: div
open_to: div
program: div
type_list: div
favorite: div
pattern:
field_templates: default
regions:
title:
- node_title
summary:
- body
- su_opp_summary
image:
- su_opp_image
time_commitment:
- su_opp_commitment
service_theme:
- su_opp_service_theme
application_deadline:
- su_opp_application_deadline
event_date:
Expand All @@ -107,10 +87,6 @@ third_party_settings:
- su_opp_time_year
open_to:
- su_opp_open_to
program:
- su_opp_dimension
type_list:
- su_opp_type
favorite:
- flag_cs_favorites
fields:
Expand All @@ -129,35 +105,10 @@ targetEntityType: node
bundle: su_opportunity
mode: cardinal_quarter_grid_results
content:
body:
type: smart_trim
label: hidden
settings:
trim_length: 50
trim_type: words
trim_suffix: ...
wrap_output: false
wrap_class: trimmed
more:
display_link: false
target_blank: false
link_trim_only: false
class: more-link
text: More
aria_label: 'Read more about [node:title]'
summary_handler: full
trim_options:
text: false
trim_zero: false
third_party_settings:
field_formatter_class:
class: ''
weight: 1
region: summary
flag_cs_favorites:
settings: { }
third_party_settings: { }
weight: 14
weight: 10
region: favorite
su_opp_application_deadline:
type: datetime_custom
Expand All @@ -168,22 +119,8 @@ content:
third_party_settings:
field_formatter_class:
class: ''
weight: 5
region: application_deadline
su_opp_commitment:
type: entity_reference_label
label: hidden
settings:
link: false
third_party_settings:
field_delimiter:
delimiter: ','
field_formatter_class:
class: ''
ds:
ds_limit: ''
weight: 3
region: time_commitment
region: application_deadline
su_opp_course_date:
type: datetime_custom
label: hidden
Expand All @@ -193,22 +130,8 @@ content:
third_party_settings:
field_formatter_class:
class: ''
weight: 7
weight: 5
region: course_date
su_opp_dimension:
type: entity_reference_label
label: hidden
settings:
link: false
third_party_settings:
field_delimiter:
delimiter: ','
field_formatter_class:
class: ''
ds:
ds_limit: ''
weight: 12
region: program
su_opp_event_date:
type: datetime_custom
label: hidden
Expand All @@ -218,7 +141,7 @@ content:
third_party_settings:
field_formatter_class:
class: ''
weight: 6
weight: 4
region: event_date
su_opp_image:
type: media_image_formatter
Expand All @@ -241,7 +164,7 @@ content:
third_party_settings:
field_formatter_class:
class: ''
weight: 9
weight: 7
region: location
su_opp_open_to:
type: entity_reference_label
Expand All @@ -255,22 +178,8 @@ content:
class: ''
ds:
ds_limit: ''
weight: 11
weight: 9
region: open_to
su_opp_service_theme:
type: entity_reference_label
label: hidden
settings:
link: false
third_party_settings:
field_delimiter:
delimiter: ','
field_formatter_class:
class: ''
ds:
ds_limit: ''
weight: 4
region: service_theme
su_opp_sponsor:
type: entity_reference_label
label: hidden
Expand All @@ -283,8 +192,15 @@ content:
class: ''
ds:
ds_limit: ''
weight: 8
weight: 6
region: sponsoring_unit
su_opp_summary:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: summary
su_opp_time_year:
type: entity_reference_label
label: hidden
Expand All @@ -297,36 +213,26 @@ content:
class: ''
ds:
ds_limit: ''
weight: 10
weight: 8
region: when
su_opp_type:
type: entity_reference_label
label: hidden
settings:
link: false
third_party_settings:
field_delimiter:
delimiter: ','
field_formatter_class:
class: ''
ds:
ds_limit: ''
weight: 13
region: type_list
hidden:
body: true
links: true
search_api_excerpt: true
su_opp_commitment: true
su_opp_contact_email: true
su_opp_contact_name: true
su_opp_contact_phone: true
su_opp_course_code: true
su_opp_deadline_time: true
su_opp_dimension: true
su_opp_duration: true
su_opp_eligibility: true
su_opp_learn_more: true
su_opp_not_eligible: true
su_opp_pathway: true
su_opp_placement_type: true
su_opp_service_theme: true
su_opp_solo_url: true
su_opp_submissions_open: true
su_opp_summary: true
su_opp_type: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cardinal_quarter_grid:
title:
type: text
label: Title
description: 'Title of the opportunity.'
description: 'Title of the Cardinal Quarter.'
preview: 'Opportunity Title'
summary:
type: text
Expand All @@ -15,15 +15,10 @@ cardinal_quarter_grid:
image:
type: image
label: Image
description: 'Image of the opportunity.'
description: 'Image.'
preview:
theme: image
uri: http://placecorgi.com/800x1200
time_commitment:
type: text
label: 'Time Commitment'
description: 'Time Commitment'
preview: 'One-time event'
service_theme:
type: text
label: 'Service Theme'
Expand Down Expand Up @@ -79,7 +74,7 @@ cardinal_quarter_grid:
label: 'Favorite Link'
description: 'A link for the user to favorite the content'
preview: '<div class="flag flag-cs-favorites action-flag"><a href="#">Favorite</a></div>'
use: '@cardinal-service/opportunity-grid/opportunity_grid.html.twig'
use: '@cardinal-service/cardinal-quarter-grid/cardinal_quarter_grid.html.twig'
libraries:
- opportunity_grid:
css:
Expand Down
97,051 changes: 96,997 additions & 54 deletions themes/cardinal_service/pdb_components/cardinal_quarter_opportunities_list/lib/app.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

97,007 changes: 96,953 additions & 54 deletions themes/cardinal_service/pdb_components/opportunities_homepage/lib/app.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

97,059 changes: 97,005 additions & 54 deletions themes/cardinal_service/pdb_components/opportunities_list/lib/app.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

96,992 changes: 96,938 additions & 54 deletions themes/cardinal_service/pdb_components/resources/lib/app.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

96,999 changes: 96,945 additions & 54 deletions themes/cardinal_service/pdb_components/stories/lib/app.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 6fb9845

Please sign in to comment.