And the straightforward new configuration for collection paragraph

This commit is contained in:
benjamin melançon 2019-09-22 22:18:16 -04:00
parent ba35d8c75b
commit 32dd464ae8
6 changed files with 158 additions and 0 deletions

View file

@ -0,0 +1,23 @@
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.drutopia_collection.field_items
- paragraphs.paragraphs_type.drutopia_collection
id: paragraph.drutopia_collection.default
targetEntityType: paragraph
bundle: drutopia_collection
mode: default
content:
field_items:
weight: 0
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
hidden:
created: true
status: true

View file

@ -0,0 +1,21 @@
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.drutopia_collection.field_items
- paragraphs.paragraphs_type.drutopia_collection
id: paragraph.drutopia_collection.default
targetEntityType: paragraph
bundle: drutopia_collection
mode: default
content:
field_items:
weight: 0
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
region: content
hidden:
search_api_excerpt: true

View file

@ -0,0 +1,55 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_body_paragraph
- node.type.collection
- paragraphs.paragraphs_type.drutopia_collection
- paragraphs.paragraphs_type.image
- paragraphs.paragraphs_type.text
module:
- entity_reference_revisions
id: node.collection.field_body_paragraph
field_name: field_body_paragraph
entity_type: node
bundle: collection
label: 'Body paragraph'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:paragraph'
handler_settings:
negate: 0
target_bundles:
drutopia_collection: drutopia_collection
image: image
text: text
target_bundles_drag_drop:
drutopia_collection:
enabled: true
weight: 9
faq:
weight: 10
enabled: false
file:
weight: 11
enabled: false
image:
enabled: true
weight: 12
slide:
weight: 13
enabled: false
text:
enabled: true
weight: 14
update:
weight: 15
enabled: false
video:
weight: 16
enabled: false
field_type: entity_reference_revisions

View file

@ -0,0 +1,32 @@
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_items
- node.type.article
- node.type.blog
- node.type.people
- paragraphs.paragraphs_type.drutopia_collection
id: paragraph.drutopia_collection.field_items
field_name: field_items
entity_type: paragraph
bundle: drutopia_collection
label: Items
description: 'Select any other content on the site to display as a list of teasers by typing words from the title and looking for the autocompletion of the content you want in the collection. You can change the order after adding each item.'
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
article: article
blog: blog
people: people
sort:
field: changed
direction: DESC
auto_create: false
auto_create_bundle: article
field_type: entity_reference

View file

@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- node
- paragraphs
id: paragraph.field_items
field_name: field_items
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

View file

@ -0,0 +1,8 @@
langcode: en
status: true
dependencies: { }
id: drutopia_collection
label: Collection
icon_uuid: null
description: 'Allows grouping referenced content together. For instance, an Issue collection could use collection paragraphs to group articles into three themes within that issue.'
behavior_plugins: { }