Add title paragraph (title, subtitle, image)

This commit is contained in:
benjamin melançon 2018-10-23 00:34:36 -04:00
parent 30a439437b
commit 2f388bddd3
8 changed files with 219 additions and 0 deletions

View file

@ -0,0 +1,46 @@
uuid: fcfa7400-ac2f-419e-a2da-a163279ef894
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.title.field_image
- field.field.paragraph.title.field_subtitle
- field.field.paragraph.title.field_title
- image.style.thumbnail
- paragraphs.paragraphs_type.title
module:
- image
- text
id: paragraph.title.default
targetEntityType: paragraph
bundle: title
mode: default
content:
field_image:
weight: 2
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
type: image_image
region: content
field_subtitle:
weight: 1
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: text_textfield
region: content
field_title:
weight: 0
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: text_textfield
region: content
hidden:
created: true
status: true
uid: true

View file

@ -0,0 +1,41 @@
uuid: e7066bcc-767c-4a92-9a46-f0eecb39effb
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.title.field_image
- field.field.paragraph.title.field_subtitle
- field.field.paragraph.title.field_title
- paragraphs.paragraphs_type.title
module:
- image
- text
id: paragraph.title.default
targetEntityType: paragraph
bundle: title
mode: default
content:
field_image:
weight: 2
label: above
settings:
image_style: ''
image_link: ''
third_party_settings: { }
type: image
region: content
field_subtitle:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_title:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
hidden: { }

View file

@ -0,0 +1,38 @@
uuid: ba308d47-ba1b-4c91-a9e6-e13ec052e808
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_image
- paragraphs.paragraphs_type.title
module:
- image
id: paragraph.title.field_image
field_name: field_image
entity_type: paragraph
bundle: title
label: Image
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
file_directory: 'title-image/[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg'
max_filesize: ''
max_resolution: ''
min_resolution: ''
alt_field: true
alt_field_required: true
title_field: false
title_field_required: false
default_image:
uuid: ''
alt: ''
title: ''
width: null
height: null
handler: 'default:file'
handler_settings: { }
field_type: image

View file

@ -0,0 +1,21 @@
uuid: 233caa0e-d7c3-47cd-945b-34d08b312e5a
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_subtitle
- paragraphs.paragraphs_type.title
module:
- text
id: paragraph.title.field_subtitle
field_name: field_subtitle
entity_type: paragraph
bundle: title
label: Subtitle
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text

View file

@ -0,0 +1,24 @@
uuid: d05fd624-a976-4c35-836e-f81b6dff68b3
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_title
- paragraphs.paragraphs_type.title
module:
- text
id: paragraph.title.field_title
field_name: field_title
entity_type: paragraph
bundle: title
label: Title
description: ''
required: true
translatable: false
default_value:
-
value: '[node:title]'
format: minimalhtml
default_value_callback: ''
settings: { }
field_type: text

View file

@ -0,0 +1,20 @@
uuid: 67dda41e-5e4f-4ec5-9e59-0f7f6351d086
langcode: en
status: true
dependencies:
module:
- paragraphs
- text
id: paragraph.field_subtitle
field_name: field_subtitle
entity_type: paragraph
type: text
settings:
max_length: 255
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View file

@ -0,0 +1,20 @@
uuid: 5d58be84-e643-407d-b71c-88da020ed670
langcode: en
status: true
dependencies:
module:
- paragraphs
- text
id: paragraph.field_title
field_name: field_title
entity_type: paragraph
type: text
settings:
max_length: 140
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View file

@ -0,0 +1,9 @@
uuid: c3e070a2-1522-442f-b4bd-7a1e32464f1c
langcode: en
status: true
dependencies: { }
id: title
label: Title
icon_uuid: null
description: 'A title for your content with an optional image and subtitle.'
behavior_plugins: { }