Add editor setting for making title paragraphs main/large
This commit is contained in:
parent
97b1954e26
commit
436321c49c
4 changed files with 63 additions and 0 deletions
|
@ -4,6 +4,7 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.paragraph.title.field_image
|
- field.field.paragraph.title.field_image
|
||||||
|
- field.field.paragraph.title.field_style_classes
|
||||||
- field.field.paragraph.title.field_style_color
|
- field.field.paragraph.title.field_style_color
|
||||||
- field.field.paragraph.title.field_style_titlebar
|
- field.field.paragraph.title.field_style_titlebar
|
||||||
- field.field.paragraph.title.field_subtitle
|
- field.field.paragraph.title.field_subtitle
|
||||||
|
@ -27,6 +28,12 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: image_image
|
type: image_image
|
||||||
region: content
|
region: content
|
||||||
|
field_style_classes:
|
||||||
|
weight: 5
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
type: options_buttons
|
||||||
|
region: content
|
||||||
field_style_color:
|
field_style_color:
|
||||||
weight: 3
|
weight: 3
|
||||||
settings: { }
|
settings: { }
|
||||||
|
|
|
@ -4,6 +4,7 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.paragraph.title.field_image
|
- field.field.paragraph.title.field_image
|
||||||
|
- field.field.paragraph.title.field_style_classes
|
||||||
- field.field.paragraph.title.field_style_color
|
- field.field.paragraph.title.field_style_color
|
||||||
- field.field.paragraph.title.field_style_titlebar
|
- field.field.paragraph.title.field_style_titlebar
|
||||||
- field.field.paragraph.title.field_subtitle
|
- field.field.paragraph.title.field_subtitle
|
||||||
|
@ -28,6 +29,13 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: image
|
type: image
|
||||||
region: content
|
region: content
|
||||||
|
field_style_classes:
|
||||||
|
weight: 5
|
||||||
|
label: hidden
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
type: list_key
|
||||||
|
region: content
|
||||||
field_style_color:
|
field_style_color:
|
||||||
weight: 3
|
weight: 3
|
||||||
label: hidden
|
label: hidden
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
uuid: ff03f9a0-22f0-484e-8156-663dcee6fff8
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.paragraph.field_style_classes
|
||||||
|
- paragraphs.paragraphs_type.title
|
||||||
|
module:
|
||||||
|
- options
|
||||||
|
id: paragraph.title.field_style_classes
|
||||||
|
field_name: field_style_classes
|
||||||
|
entity_type: paragraph
|
||||||
|
bundle: title
|
||||||
|
label: 'Section style'
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings: { }
|
||||||
|
field_type: list_string
|
27
config/sync/field.storage.paragraph.field_style_classes.yml
Normal file
27
config/sync/field.storage.paragraph.field_style_classes.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
uuid: 95c1887e-3679-4bb1-85bb-ace73acdefd8
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- options
|
||||||
|
- paragraphs
|
||||||
|
id: paragraph.field_style_classes
|
||||||
|
field_name: field_style_classes
|
||||||
|
entity_type: paragraph
|
||||||
|
type: list_string
|
||||||
|
settings:
|
||||||
|
allowed_values:
|
||||||
|
-
|
||||||
|
value: hero-main
|
||||||
|
label: Main
|
||||||
|
-
|
||||||
|
value: is-large
|
||||||
|
label: Large
|
||||||
|
allowed_values_function: ''
|
||||||
|
module: options
|
||||||
|
locked: false
|
||||||
|
cardinality: -1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
Loading…
Reference in a new issue