Add the gleaning content type
This commit is contained in:
parent
43e50e17cd
commit
472a655d72
9 changed files with 289 additions and 3 deletions
100
config/sync/core.entity_form_display.node.gleaning.default.yml
Normal file
100
config/sync/core.entity_form_display.node.gleaning.default.yml
Normal file
|
@ -0,0 +1,100 @@
|
|||
uuid: 19b44515-031a-4b62-804e-0f52ee253042
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.gleaning.body
|
||||
- field.field.node.gleaning.field_image
|
||||
- field.field.node.gleaning.field_upload
|
||||
- image.style.thumbnail
|
||||
- node.type.gleaning
|
||||
module:
|
||||
- file
|
||||
- image
|
||||
- path
|
||||
- text
|
||||
id: node.gleaning.default
|
||||
targetEntityType: node
|
||||
bundle: gleaning
|
||||
mode: default
|
||||
content:
|
||||
body:
|
||||
type: text_textarea_with_summary
|
||||
weight: 121
|
||||
settings:
|
||||
rows: 9
|
||||
summary_rows: 3
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_image:
|
||||
weight: 122
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
preview_image_style: thumbnail
|
||||
third_party_settings: { }
|
||||
type: image_image
|
||||
region: content
|
||||
field_upload:
|
||||
weight: 123
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
third_party_settings: { }
|
||||
type: file_generic
|
||||
region: content
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
promote:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 15
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 120
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
sticky:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 16
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
title:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
url_redirects:
|
||||
weight: 50
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
hidden: { }
|
|
@ -0,0 +1,50 @@
|
|||
uuid: be59c89f-4abb-447c-8001-4467f4b12ae4
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.gleaning.body
|
||||
- field.field.node.gleaning.field_image
|
||||
- field.field.node.gleaning.field_upload
|
||||
- node.type.gleaning
|
||||
module:
|
||||
- file
|
||||
- image
|
||||
- text
|
||||
- user
|
||||
id: node.gleaning.default
|
||||
targetEntityType: node
|
||||
bundle: gleaning
|
||||
mode: default
|
||||
content:
|
||||
body:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 101
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
field_image:
|
||||
weight: 102
|
||||
label: above
|
||||
settings:
|
||||
image_style: ''
|
||||
image_link: ''
|
||||
third_party_settings: { }
|
||||
type: image
|
||||
region: content
|
||||
field_upload:
|
||||
weight: 103
|
||||
label: above
|
||||
settings:
|
||||
use_description_as_link_text: true
|
||||
third_party_settings: { }
|
||||
type: file_default
|
||||
region: content
|
||||
links:
|
||||
weight: 100
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
hidden:
|
||||
search_api_excerpt: true
|
|
@ -0,0 +1,31 @@
|
|||
uuid: e39079f3-3167-4d85-be5d-01fa77a36d58
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.teaser
|
||||
- field.field.node.gleaning.body
|
||||
- node.type.gleaning
|
||||
module:
|
||||
- text
|
||||
- user
|
||||
id: node.gleaning.teaser
|
||||
targetEntityType: node
|
||||
bundle: gleaning
|
||||
mode: teaser
|
||||
content:
|
||||
body:
|
||||
label: hidden
|
||||
type: text_summary_or_trimmed
|
||||
weight: 101
|
||||
settings:
|
||||
trim_length: 600
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
links:
|
||||
weight: 100
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
hidden:
|
||||
search_api_excerpt: true
|
|
@ -26,11 +26,11 @@ settings:
|
|||
max_resolution: ''
|
||||
min_resolution: ''
|
||||
alt_field: true
|
||||
alt_field_required: false
|
||||
title_field: false
|
||||
alt_field_required: true
|
||||
title_field_required: false
|
||||
default_image:
|
||||
uuid: null
|
||||
uuid: ''
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
|
|
|
@ -26,7 +26,7 @@ settings:
|
|||
max_resolution: ''
|
||||
min_resolution: ''
|
||||
alt_field: true
|
||||
alt_field_required: true
|
||||
alt_field_required: false
|
||||
title_field: false
|
||||
title_field_required: false
|
||||
default_image:
|
||||
|
|
22
config/sync/field.field.node.gleaning.body.yml
Normal file
22
config/sync/field.field.node.gleaning.body.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
uuid: 57c80768-1dd4-4c29-a3a1-63e84f1903af
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.body
|
||||
- node.type.gleaning
|
||||
module:
|
||||
- text
|
||||
id: node.gleaning.body
|
||||
field_name: body
|
||||
entity_type: node
|
||||
bundle: gleaning
|
||||
label: Body
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
display_summary: true
|
||||
field_type: text_with_summary
|
38
config/sync/field.field.node.gleaning.field_image.yml
Normal file
38
config/sync/field.field.node.gleaning.field_image.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
uuid: 1488aa4d-d0c6-4e12-b253-b106a509cb58
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_image
|
||||
- node.type.gleaning
|
||||
module:
|
||||
- image
|
||||
id: node.gleaning.field_image
|
||||
field_name: field_image
|
||||
entity_type: node
|
||||
bundle: gleaning
|
||||
label: 'Insert an image into the text'
|
||||
description: '<ul><li>The first image uploaded will display on the front page (so please make it horizontally-oriented, 4x6)</li><li>The image will only display if you insert it into the text</li><li>The caption will not display in the editing box</li><li>Double-click on the image to align it to the right or left</li></ul>'
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
file_extensions: 'png gif jpg jpeg'
|
||||
max_filesize: ''
|
||||
max_resolution: ''
|
||||
min_resolution: ''
|
||||
alt_field: true
|
||||
alt_field_required: false
|
||||
title_field: true
|
||||
title_field_required: false
|
||||
default_image:
|
||||
uuid: ''
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
field_type: image
|
27
config/sync/field.field.node.gleaning.field_upload.yml
Normal file
27
config/sync/field.field.node.gleaning.field_upload.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
uuid: 538ba9cd-90a1-4ac2-bbb7-43e4f3cfc60d
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_upload
|
||||
- node.type.gleaning
|
||||
module:
|
||||
- file
|
||||
id: node.gleaning.field_upload
|
||||
field_name: field_upload
|
||||
entity_type: node
|
||||
bundle: gleaning
|
||||
label: 'File attachments'
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
file_extensions: 'txt pdf doc docx odt'
|
||||
max_filesize: ''
|
||||
description_field: false
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
field_type: file
|
18
config/sync/node.type.gleaning.yml
Normal file
18
config/sync/node.type.gleaning.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
uuid: ad2f13ef-bdc4-4b33-8632-519f4e170e54
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- menu_ui
|
||||
third_party_settings:
|
||||
menu_ui:
|
||||
available_menus:
|
||||
- main
|
||||
parent: 'main:'
|
||||
name: Gleaning
|
||||
type: gleaning
|
||||
description: 'A gleaning is a quick link to material posted somewhere else online. It should have a title, a link, and can also have a comment. '
|
||||
help: ''
|
||||
new_revision: false
|
||||
preview_mode: 1
|
||||
display_submitted: false
|
Loading…
Add table
Reference in a new issue