Skip to content

Commit

Permalink
SUL23-701 SUL-703: Home page image banner & Location hours paragraph …
Browse files Browse the repository at this point in the history
…types (#156)

* SUL23-701: Home page image banner paragraph type

* SUL23-703 Location hours paragraph type

* Updated dependencies
  • Loading branch information
pookmish authored Jan 21, 2025
1 parent 6bbdfa7 commit 89f8986
Show file tree
Hide file tree
Showing 22 changed files with 811 additions and 188 deletions.
437 changes: 254 additions & 183 deletions composer.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,15 @@ entity_config:
sul_feat_collection:
enabled: true
query_load_enabled: true
sul_home_banner:
enabled: true
sul_home_image:
enabled: true
sul_libguide:
enabled: true
query_load_enabled: true
sul_location_hours:
enabled: true
redirect:
redirect:
enabled: true
Expand Down Expand Up @@ -1012,13 +1018,24 @@ field_config:
enabled: true
sul_collection__link:
enabled: true
sul_home_banner:
sul_home_images:
enabled: true
sul_home_image:
sul_home_image:
enabled: true
sul_home_image_credits:
enabled: true
sul_libguide:
sul_libguide__desc:
enabled: true
sul_libguide__headline:
enabled: true
sul_libguide_id:
enabled: true
sul_location_hours:
sul_loc_hours_alert:
enabled: true
su_policy_log:
su_policy_log:
su_policy_date:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ removing:
label: 'Splash Font'
element: '<p class="su-font-splash">'
-
label: 'Quote Text'
label: 'Quote LG'
element: '<p class="su-quote-text">'
-
label: 'Quote MD'
element: '<p class="su-quote-text--md">'
-
label: 'Quote SM'
element: '<p class="su-quote-text--sm">'
-
label: 'Drop Cap First Letter'
element: '<p class="su-drop-cap">'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
adding:
dependencies:
config:
- paragraphs.paragraphs_type.sul_home_banner
settings:
handler_settings:
target_bundles:
sul_home_banner: sul_home_banner
target_bundles_drag_drop:
collection:
weight: 20
Expand All @@ -11,6 +16,11 @@ adding:
layout:
weight: 22
enabled: false
stanford_faq:
weight: 31
enabled: false
stanford_layout:
weight: 33
stanford_page_title_banner:
enabled: false
sul_button:
Expand All @@ -22,6 +32,12 @@ adding:
sul_feat_collection:
weight: 37
enabled: false
sul_home_banner:
weight: 44
enabled: true
sul_home_image:
weight: 45
enabled: false
sul_libguide:
weight: 38
enabled: false
Expand All @@ -36,6 +52,5 @@ removing:
target_bundles_drag_drop:
stanford_layout:
weight: 19
enabled: false
stanford_page_title_banner:
enabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ adding:
- paragraphs.paragraphs_type.sul_contact_card
- paragraphs.paragraphs_type.sul_feat_collection
- paragraphs.paragraphs_type.sul_libguide
- paragraphs.paragraphs_type.sul_location_hours
translatable: true
settings:
handler_settings:
Expand All @@ -17,6 +18,7 @@ adding:
sul_button: sul_button
sul_feat_collection: sul_feat_collection
sul_libguide: sul_libguide
sul_location_hours: sul_location_hours
target_bundles_drag_drop:
collection:
weight: -20
Expand All @@ -37,6 +39,9 @@ adding:
weight: -19
stanford_gallery:
weight: -21
stanford_layout:
weight: 34
enabled: false
stanford_lists:
weight: -18
stanford_media_caption:
Expand All @@ -58,9 +63,18 @@ adding:
sul_feat_collection:
weight: 32
enabled: true
sul_home_banner:
weight: 45
enabled: false
sul_home_image:
weight: 46
enabled: false
sul_libguide:
weight: 36
enabled: true
sul_location_hours:
weight: 48
enabled: true
removing:
dependencies:
config:
Expand All @@ -81,6 +95,9 @@ removing:
weight: -20
stanford_gallery:
weight: -19
stanford_layout:
weight: -18
enabled: true
stanford_lists:
weight: -17
stanford_media_caption:
Expand All @@ -93,6 +110,3 @@ removing:
weight: -14
stanford_wysiwyg:
weight: -24
stanford_layout:
weight: -18
enabled: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
uuid: d61a1ed6-fb82-427c-b17f-aa8538880236
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.sul_home_banner.sul_home_images
- paragraphs.paragraphs_type.sul_home_banner
module:
- change_labels
- field_formatter_class
- paragraphs
id: paragraph.sul_home_banner.default
targetEntityType: paragraph
bundle: sul_home_banner
mode: default
content:
sul_home_images:
type: paragraphs
weight: 0
region: content
settings:
title: 'Banner Image'
title_plural: 'Banner Images'
edit_mode: closed
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: button
form_display_mode: default
default_paragraph_type: sul_home_image
features:
add_above: '0'
collapse_edit_all: collapse_edit_all
convert: '0'
duplicate: duplicate
third_party_settings:
field_formatter_class:
class: ''
change_labels:
add_another: ''
field_label_overwrite: ''
hide_add_another: 0
force_single_cardinality: 0
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
uuid: b98cd050-c931-46f2-abb7-1d583dd630a4
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.sul_home_image.sul_home_image
- field.field.paragraph.sul_home_image.sul_home_image_credits
- paragraphs.paragraphs_type.sul_home_image
module:
- change_labels
- field_formatter_class
- maxlength
- media_library
- text
id: paragraph.sul_home_image.default
targetEntityType: paragraph
bundle: sul_home_image
mode: default
content:
sul_home_image:
type: media_library_widget
weight: 0
region: content
settings:
media_types: { }
third_party_settings: { }
sul_home_image_credits:
type: text_textarea
weight: 2
region: content
settings:
rows: 5
placeholder: ''
third_party_settings:
maxlength:
maxlength_js: 200
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: true
change_labels:
field_label_overwrite: ''
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: defd5492-1e52-4a82-9a0c-e128ea4f2b61
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.sul_location_hours.sul_loc_hours_alert
- paragraphs.paragraphs_type.sul_location_hours
module:
- change_labels
- field_formatter_class
- maxlength
- text
id: paragraph.sul_location_hours.default
targetEntityType: paragraph
bundle: sul_location_hours
mode: default
content:
sul_loc_hours_alert:
type: text_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings:
maxlength:
maxlength_js: 60
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: true
change_labels:
field_label_overwrite: ''
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: c4e9e211-3a80-43f5-8085-2b84f539c22a
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.sul_home_banner.sul_home_images
- paragraphs.paragraphs_type.sul_home_banner
module:
- entity_reference_revisions
id: paragraph.sul_home_banner.default
targetEntityType: paragraph
bundle: sul_home_banner
mode: default
content:
sul_home_images:
type: entity_reference_revisions_entity_view
label: hidden
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
uuid: 2a176bc3-7c84-4438-a572-0eb266919537
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.sul_home_image.sul_home_image
- field.field.paragraph.sul_home_image.sul_home_image_credits
- paragraphs.paragraphs_type.sul_home_image
module:
- empty_fields
- field_formatter_class
- field_label
- stanford_media
- text
id: paragraph.sul_home_image.default
targetEntityType: paragraph
bundle: sul_home_image
mode: default
content:
sul_home_image:
type: media_image_formatter
label: hidden
settings:
view_mode: default
link: false
image_style: card_478x239
remove_alt: false
third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
field_label:
label_value: ''
label_tag: ''
weight: 0
region: content
sul_home_image_credits:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 2
region: content
hidden:
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: a1f734b0-9ab6-4ce2-a81a-769f45dfcd56
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.sul_location_hours.sul_loc_hours_alert
- paragraphs.paragraphs_type.sul_location_hours
module:
- text
id: paragraph.sul_location_hours.default
targetEntityType: paragraph
bundle: sul_location_hours
mode: default
content:
sul_loc_hours_alert:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
Loading

0 comments on commit 89f8986

Please sign in to comment.