Skip to content

Commit

Permalink
SUL: Added image cpation for card paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 23, 2025
1 parent 8444f16 commit 6dd3658
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ settings:
label: 'Splash Font'
element: '<p class="su-font-splash">'
-
label: 'Quote'
label: Quote
element: '<p class="su-quote-text">'
-
label: 'Drop Cap First Letter'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,8 @@ field_config:
enabled: true
su_card_super_header:
enabled: true
sul_card_image_caption:
enabled: true
stanford_entity:
su_entity_button:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
adding:
dependencies:
config:
- field.field.paragraph.stanford_card.sul_card_image_caption
module:
- change_labels
- conditional_fields
- link_attributes
- sul_helper
content:
status:
weight: 4
su_card_body:
weight: 2
weight: 4
su_card_header:
weight: 1
weight: 3
su_card_link:
type: link_attributes
weight: 3
weight: 5
region: content
settings:
enabled_attributes:
Expand All @@ -24,28 +26,39 @@ adding:
class: false
accesskey: false
title: false
widget_default_open: expandIfValuesSet
third_party_settings:
change_labels:
field_label_overwrite: ''
hidden:
su_card_super_header: true
su_card_media:
weight: 1
su_card_super_header:
type: sul_branch_selector
weight: 0
region: content
sul_card_image_caption:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings:
conditional_fields: { }
removing:
dependencies:
module:
- link
content:
status:
weight: 6
su_card_body:
weight: 3
su_card_header:
weight: 2
su_card_link:
type: link_default
weight: 5
weight: 7
su_card_media:
weight: 0
su_card_super_header:
settings:
size: 60
placeholder: ''
type: string_textfield
weight: 1
weight: 8
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
adding:
dependencies:
config:
- field.field.paragraph.stanford_card.sul_card_image_caption
third_party_settings:
ds:
regions:
card_image:
- sul_card_image_caption
content:
su_card_media:
settings:
remove_alt: false
sul_card_image_caption:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 5
region: card_image
removing: { }
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
adding: { }
adding:
dependencies:
config:
- field.field.paragraph.stanford_card.sul_card_image_caption
hidden:
sul_card_image_caption: true
removing:
hidden:
su_card_link_display: true
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
adding: { }
adding:
dependencies:
config:
- field.field.paragraph.stanford_card.sul_card_image_caption
hidden:
sul_card_image_caption: true
removing:
hidden:
su_card_link_display: true
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,8 @@ removing:
label: 'Splash Font'
element: '<p class="su-font-splash">'
-
label: 'Quote LG'
label: Quote
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
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.field.paragraph.stanford_card.su_card_link
- field.field.paragraph.stanford_card.su_card_media
- field.field.paragraph.stanford_card.su_card_super_header
- field.field.paragraph.stanford_card.sul_card_image_caption
- paragraphs.paragraphs_type.stanford_card
module:
- change_labels
Expand Down Expand Up @@ -67,4 +68,5 @@ hidden:
publish_on: true
status: true
su_card_super_header: true
sul_card_image_caption: true
unpublish_on: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 9aa24cd8-4b3b-4138-a858-c4044f73b745
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.sul_card_image_caption
- paragraphs.paragraphs_type.stanford_card
id: paragraph.stanford_card.sul_card_image_caption
field_name: sul_card_image_caption
entity_type: paragraph
bundle: stanford_card
label: 'Image Caption'
description: 'Text that will overlay the bottom of the image.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: b0f33d9e-afa7-4c32-b964-49465e04fd30
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.sul_card_image_caption
field_name: sul_card_image_caption
entity_type: paragraph
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit 6dd3658

Please sign in to comment.