Skip to content

Commit

Permalink
SUL23-703 Location hours paragraph type
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 16, 2025
1 parent 4ffa3f4 commit 150c9fe
Show file tree
Hide file tree
Showing 11 changed files with 158 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ entity_config:
sul_libguide:
enabled: true
query_load_enabled: true
sul_location_hours:
enabled: true
redirect:
redirect:
enabled: true
Expand Down Expand Up @@ -1024,15 +1026,16 @@ field_config:
enabled: true
sul_home_image_credits:
enabled: true
sul_home_image_title:
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 @@ -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
Expand Up @@ -8,29 +8,31 @@ dependencies:
module:
- change_labels
- field_formatter_class
- inline_entity_form
- paragraphs
id: paragraph.sul_home_banner.default
targetEntityType: paragraph
bundle: sul_home_banner
mode: default
content:
sul_home_images:
type: inline_entity_form_complex
type: paragraphs
weight: 0
region: content
settings:
form_mode: default
override_labels: false
label_singular: ''
label_plural: ''
allow_new: true
allow_existing: false
match_operator: CONTAINS
allow_duplicate: false
collapsible: true
collapsed: true
revision: false
removed_reference: delete
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: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ dependencies:
config:
- field.field.paragraph.sul_home_image.sul_home_image
- field.field.paragraph.sul_home_image.sul_home_image_credits
- field.field.paragraph.sul_home_image.sul_home_image_title
- paragraphs.paragraphs_type.sul_home_image
module:
- change_labels
- field_formatter_class
- maxlength
- media_library
- text
id: paragraph.sul_home_image.default
Expand All @@ -29,15 +31,13 @@ content:
settings:
rows: 5
placeholder: ''
third_party_settings: { }
sul_home_image_title:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
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
Expand Up @@ -5,41 +5,26 @@ dependencies:
config:
- field.field.paragraph.sul_home_image.sul_home_image
- field.field.paragraph.sul_home_image.sul_home_image_credits
- field.field.paragraph.sul_home_image.sul_home_image_title
- paragraphs.paragraphs_type.sul_home_image
module:
- empty_fields
- field_formatter_class
- field_label
- stanford_fields
- stanford_media
- text
id: paragraph.sul_home_image.default
targetEntityType: paragraph
bundle: sul_home_image
mode: default
content:
sul_home_image:
type: entity_reference_entity_view
type: media_image_formatter
label: hidden
settings:
view_mode: default
link: false
third_party_settings: { }
weight: 0
region: content
sul_home_image_credits:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 2
region: content
sul_home_image_title:
type: entity_title_heading
label: hidden
settings:
tag: h2
linked: false
image_style: card_478x239
remove_alt: false
third_party_settings:
empty_fields:
handler: ''
Expand All @@ -48,7 +33,14 @@ content:
field_label:
label_value: ''
label_tag: ''
weight: 1
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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 4857bca2-dd9d-4f53-ab53-fcb781554f11
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.sul_loc_hours_alert
- filter.format.stanford_minimal_html
- paragraphs.paragraphs_type.sul_location_hours
module:
- text
id: paragraph.sul_location_hours.sul_loc_hours_alert
field_name: sul_loc_hours_alert
entity_type: paragraph
bundle: sul_location_hours
label: 'Alert Text'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats:
- stanford_minimal_html
field_type: text
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
uuid: 19053779-6788-4857-9e1f-98433a78f1a7
uuid: 1e775452-0509-45c9-bdfd-bb68a7304d0e
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.sul_home_image_title
field_name: sul_home_image_title
- text
id: paragraph.sul_loc_hours_alert
field_name: sul_loc_hours_alert
entity_type: paragraph
type: string
type: text
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
max_length: 1000
module: text
locked: false
cardinality: 1
translatable: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 5bbea2f8-e8e4-416a-aa64-49b8314ad6ad
langcode: en
status: true
dependencies: { }
id: sul_location_hours
label: 'Location Hours'
icon_uuid: null
icon_default: null
description: ''
behavior_plugins: { }

0 comments on commit 150c9fe

Please sign in to comment.