-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
D8CORE-7207 Add Page Title Banner Paragraph (#754)
- Loading branch information
Showing
18 changed files
with
459 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
config/sync/core.entity_form_display.paragraph.stanford_page_title_banner.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
uuid: 1c6a81c7-d849-4420-bfcf-f87a8160b5d4 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.stanford_page_title_banner.su_title_banner_image | ||
- paragraphs.paragraphs_type.stanford_page_title_banner | ||
module: | ||
- media_library | ||
id: paragraph.stanford_page_title_banner.default | ||
targetEntityType: paragraph | ||
bundle: stanford_page_title_banner | ||
mode: default | ||
content: | ||
su_title_banner_image: | ||
type: media_library_widget | ||
weight: 0 | ||
region: content | ||
settings: | ||
media_types: { } | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
status: true |
57 changes: 57 additions & 0 deletions
57
config/sync/core.entity_view_display.paragraph.stanford_page_title_banner.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
uuid: 701c5dca-9f80-4e9c-8323-46f88a98e618 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.stanford_page_title_banner.su_title_banner_image | ||
- paragraphs.paragraphs_type.stanford_page_title_banner | ||
module: | ||
- ds | ||
- empty_fields | ||
- field_formatter_class | ||
- stanford_media | ||
third_party_settings: | ||
ds: | ||
layout: | ||
id: pattern_hero | ||
library: null | ||
disable_css: false | ||
entity_classes: all_classes | ||
settings: | ||
pattern: | ||
field_templates: default | ||
variant: default | ||
regions: | ||
hero_body: | ||
- 'dynamic_token_field:paragraph-page_title' | ||
- su_title_banner_header | ||
hero_image: | ||
- su_title_banner_image | ||
fields: | ||
'dynamic_token_field:paragraph-page_title': | ||
plugin_id: 'dynamic_token_field:paragraph-page_title' | ||
weight: 0 | ||
label: hidden | ||
formatter: default | ||
id: paragraph.stanford_page_title_banner.default | ||
targetEntityType: paragraph | ||
bundle: stanford_page_title_banner | ||
mode: default | ||
content: | ||
su_title_banner_image: | ||
type: media_responsive_image_formatter | ||
label: hidden | ||
settings: | ||
view_mode: default | ||
link: false | ||
image_style: stanford_hero_block_wide | ||
remove_alt: 0 | ||
third_party_settings: | ||
empty_fields: | ||
handler: '' | ||
field_formatter_class: | ||
class: '' | ||
weight: 2 | ||
region: hero_image | ||
hidden: | ||
search_api_excerpt: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
id: page_title | ||
label: 'Page Title' | ||
ui_limit: 'stanford_page_title_banner|*' | ||
type: token | ||
type_label: 'Token field' | ||
entities: | ||
paragraph: paragraph | ||
properties: | ||
content: | ||
value: '<h1>[current-page:title]</h1>' | ||
format: administrative_html | ||
force_global_entity: false | ||
use_global_entity: false | ||
use_global_view_token: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
config/sync/field.field.paragraph.stanford_page_title_banner.su_title_banner_image.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
uuid: 01f81126-912e-40c4-9607-fc318ca24a0b | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.su_title_banner_image | ||
- media.type.image | ||
- paragraphs.paragraphs_type.stanford_page_title_banner | ||
id: paragraph.stanford_page_title_banner.su_title_banner_image | ||
field_name: su_title_banner_image | ||
entity_type: paragraph | ||
bundle: stanford_page_title_banner | ||
label: Image | ||
description: 'The page title banner background image. Please use hi-resolution images.' | ||
required: true | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:media' | ||
handler_settings: | ||
target_bundles: | ||
image: image | ||
sort: | ||
field: _none | ||
direction: ASC | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
20 changes: 20 additions & 0 deletions
20
config/sync/field.storage.paragraph.su_title_banner_image.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
uuid: 4327eda2-047f-433c-9b71-59402c332db2 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- media | ||
- paragraphs | ||
id: paragraph.su_title_banner_image | ||
field_name: su_title_banner_image | ||
entity_type: paragraph | ||
type: entity_reference | ||
settings: | ||
target_type: media | ||
module: core | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
uuid: 5878ed4c-98dc-49fe-9fbb-fd1c4449faa8 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- responsive_tables_filter | ||
- stanford_decoupled | ||
name: 'Administrative HTML' | ||
format: administrative_html | ||
weight: -7 | ||
filters: | ||
filter_html_image_secure: | ||
id: filter_html_image_secure | ||
provider: filter | ||
status: true | ||
weight: 9 | ||
settings: { } | ||
filter_responsive_tables_filter: | ||
id: filter_responsive_tables_filter | ||
provider: responsive_tables_filter | ||
status: false | ||
weight: 0 | ||
settings: | ||
tablesaw_type: stack | ||
tablesaw_persist: '1' | ||
su_clean_html: | ||
id: su_clean_html | ||
provider: stanford_decoupled | ||
status: true | ||
weight: 99 | ||
settings: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.