Add and configure a content reference paragraph type
This commit is contained in:
parent
a1a3c1bab7
commit
1a3ea45feb
8 changed files with 167 additions and 2 deletions
|
@ -0,0 +1,24 @@
|
||||||
|
uuid: e50613ed-23a3-4601-bd5f-4287d40b3482
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.field.paragraph.content_reference.field_content_reference
|
||||||
|
- paragraphs.paragraphs_type.content_reference
|
||||||
|
id: paragraph.content_reference.default
|
||||||
|
targetEntityType: paragraph
|
||||||
|
bundle: content_reference
|
||||||
|
mode: default
|
||||||
|
content:
|
||||||
|
field_content_reference:
|
||||||
|
weight: 0
|
||||||
|
settings:
|
||||||
|
match_operator: CONTAINS
|
||||||
|
size: 60
|
||||||
|
placeholder: ''
|
||||||
|
third_party_settings: { }
|
||||||
|
type: entity_reference_autocomplete
|
||||||
|
region: content
|
||||||
|
hidden:
|
||||||
|
created: true
|
||||||
|
status: true
|
|
@ -0,0 +1,21 @@
|
||||||
|
uuid: 160f66af-bbb4-4d93-856f-6e2be7948dbf
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.field.paragraph.content_reference.field_content_reference
|
||||||
|
- paragraphs.paragraphs_type.content_reference
|
||||||
|
id: paragraph.content_reference.default
|
||||||
|
targetEntityType: paragraph
|
||||||
|
bundle: content_reference
|
||||||
|
mode: default
|
||||||
|
content:
|
||||||
|
field_content_reference:
|
||||||
|
weight: 0
|
||||||
|
label: above
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings: { }
|
||||||
|
type: entity_reference_label
|
||||||
|
region: content
|
||||||
|
hidden: { }
|
|
@ -22,15 +22,49 @@ default_value_callback: ''
|
||||||
settings:
|
settings:
|
||||||
handler: 'default:paragraph'
|
handler: 'default:paragraph'
|
||||||
handler_settings:
|
handler_settings:
|
||||||
|
negate: 0
|
||||||
target_bundles: null
|
target_bundles: null
|
||||||
target_bundles_drag_drop:
|
target_bundles_drag_drop:
|
||||||
text:
|
file:
|
||||||
weight: -7
|
weight: -7
|
||||||
enabled: false
|
enabled: false
|
||||||
image:
|
image:
|
||||||
weight: -7
|
weight: -7
|
||||||
enabled: false
|
enabled: false
|
||||||
file:
|
text:
|
||||||
weight: -7
|
weight: -7
|
||||||
enabled: false
|
enabled: false
|
||||||
|
content_reference:
|
||||||
|
weight: 15
|
||||||
|
enabled: false
|
||||||
|
faq:
|
||||||
|
weight: 16
|
||||||
|
enabled: false
|
||||||
|
quotation_with_image:
|
||||||
|
weight: 19
|
||||||
|
enabled: false
|
||||||
|
slide:
|
||||||
|
weight: 20
|
||||||
|
enabled: false
|
||||||
|
storyline_header:
|
||||||
|
weight: 21
|
||||||
|
enabled: false
|
||||||
|
storyline_item:
|
||||||
|
weight: 22
|
||||||
|
enabled: false
|
||||||
|
title:
|
||||||
|
weight: 24
|
||||||
|
enabled: false
|
||||||
|
update:
|
||||||
|
weight: 25
|
||||||
|
enabled: false
|
||||||
|
video:
|
||||||
|
weight: 26
|
||||||
|
enabled: false
|
||||||
|
view:
|
||||||
|
weight: 27
|
||||||
|
enabled: false
|
||||||
|
webform:
|
||||||
|
weight: 28
|
||||||
|
enabled: false
|
||||||
field_type: entity_reference_revisions
|
field_type: entity_reference_revisions
|
||||||
|
|
|
@ -5,6 +5,7 @@ dependencies:
|
||||||
config:
|
config:
|
||||||
- field.storage.node.field_body_paragraph
|
- field.storage.node.field_body_paragraph
|
||||||
- node.type.case_study
|
- node.type.case_study
|
||||||
|
- paragraphs.paragraphs_type.content_reference
|
||||||
- paragraphs.paragraphs_type.faq
|
- paragraphs.paragraphs_type.faq
|
||||||
- paragraphs.paragraphs_type.file
|
- paragraphs.paragraphs_type.file
|
||||||
- paragraphs.paragraphs_type.image
|
- paragraphs.paragraphs_type.image
|
||||||
|
@ -47,6 +48,7 @@ settings:
|
||||||
update: update
|
update: update
|
||||||
faq: faq
|
faq: faq
|
||||||
video: video
|
video: video
|
||||||
|
content_reference: content_reference
|
||||||
quotation_with_image: quotation_with_image
|
quotation_with_image: quotation_with_image
|
||||||
view: view
|
view: view
|
||||||
webform: webform
|
webform: webform
|
||||||
|
@ -81,6 +83,9 @@ settings:
|
||||||
video:
|
video:
|
||||||
enabled: true
|
enabled: true
|
||||||
weight: -12
|
weight: -12
|
||||||
|
content_reference:
|
||||||
|
enabled: true
|
||||||
|
weight: 15
|
||||||
quotation_with_image:
|
quotation_with_image:
|
||||||
enabled: true
|
enabled: true
|
||||||
weight: 17
|
weight: 17
|
||||||
|
|
|
@ -5,6 +5,7 @@ dependencies:
|
||||||
config:
|
config:
|
||||||
- field.storage.node.field_body_paragraph
|
- field.storage.node.field_body_paragraph
|
||||||
- node.type.landing_page
|
- node.type.landing_page
|
||||||
|
- paragraphs.paragraphs_type.content_reference
|
||||||
- paragraphs.paragraphs_type.faq
|
- paragraphs.paragraphs_type.faq
|
||||||
- paragraphs.paragraphs_type.file
|
- paragraphs.paragraphs_type.file
|
||||||
- paragraphs.paragraphs_type.image
|
- paragraphs.paragraphs_type.image
|
||||||
|
@ -48,6 +49,7 @@ settings:
|
||||||
update: update
|
update: update
|
||||||
title: title
|
title: title
|
||||||
view: view
|
view: view
|
||||||
|
content_reference: content_reference
|
||||||
quotation_with_image: quotation_with_image
|
quotation_with_image: quotation_with_image
|
||||||
webform: webform
|
webform: webform
|
||||||
target_bundles_drag_drop:
|
target_bundles_drag_drop:
|
||||||
|
@ -84,6 +86,9 @@ settings:
|
||||||
view:
|
view:
|
||||||
enabled: true
|
enabled: true
|
||||||
weight: 12
|
weight: 12
|
||||||
|
content_reference:
|
||||||
|
enabled: true
|
||||||
|
weight: 15
|
||||||
quotation_with_image:
|
quotation_with_image:
|
||||||
enabled: true
|
enabled: true
|
||||||
weight: 17
|
weight: 17
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
uuid: 65a2e9fe-e9c7-4508-bc38-fc2eaa1a0dc8
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.paragraph.field_content_reference
|
||||||
|
- node.type.article
|
||||||
|
- node.type.blog
|
||||||
|
- node.type.campaign
|
||||||
|
- node.type.case_study
|
||||||
|
- node.type.event
|
||||||
|
- node.type.landing_page
|
||||||
|
- node.type.page
|
||||||
|
- node.type.people
|
||||||
|
- node.type.resource
|
||||||
|
- paragraphs.paragraphs_type.content_reference
|
||||||
|
id: paragraph.content_reference.field_content_reference
|
||||||
|
field_name: field_content_reference
|
||||||
|
entity_type: paragraph
|
||||||
|
bundle: content_reference
|
||||||
|
label: Content
|
||||||
|
description: ''
|
||||||
|
required: true
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings:
|
||||||
|
handler: 'default:node'
|
||||||
|
handler_settings:
|
||||||
|
target_bundles:
|
||||||
|
article: article
|
||||||
|
page: page
|
||||||
|
blog: blog
|
||||||
|
campaign: campaign
|
||||||
|
case_study: case_study
|
||||||
|
event: event
|
||||||
|
landing_page: landing_page
|
||||||
|
people: people
|
||||||
|
resource: resource
|
||||||
|
sort:
|
||||||
|
field: changed
|
||||||
|
direction: DESC
|
||||||
|
auto_create: false
|
||||||
|
auto_create_bundle: campaign
|
||||||
|
field_type: entity_reference
|
|
@ -0,0 +1,20 @@
|
||||||
|
uuid: 1862071b-3776-48b6-96ae-207891806771
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- node
|
||||||
|
- paragraphs
|
||||||
|
id: paragraph.field_content_reference
|
||||||
|
field_name: field_content_reference
|
||||||
|
entity_type: paragraph
|
||||||
|
type: entity_reference
|
||||||
|
settings:
|
||||||
|
target_type: node
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: -1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
11
config/sync/paragraphs.paragraphs_type.content_reference.yml
Normal file
11
config/sync/paragraphs.paragraphs_type.content_reference.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
uuid: 16df13f1-60e7-42e2-8ea3-4de29259a16d
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
content:
|
||||||
|
- 'file:file:052700be-3a94-41a7-8a54-f427611b5cf8'
|
||||||
|
id: content_reference
|
||||||
|
label: 'Content reference'
|
||||||
|
icon_uuid: 052700be-3a94-41a7-8a54-f427611b5cf8
|
||||||
|
description: 'Create an ordered list of any other content on the site.'
|
||||||
|
behavior_plugins: { }
|
Loading…
Reference in a new issue