rwcms_article-1.0.0-alpha1/recipe.yml
recipe.yml
name: 'RW CMS Article content type'
description: 'Provides Article content type and related configuration. Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'
type: 'Content type'
install:
- image
- node
- path
- photoswipe
- photoswipe_dynamic_caption
- smart_date
config:
strict:
# Treat field storages strictly, since they influence the database layout.
- field.storage.node.body
- field.storage.node.field_image
import:
node:
# Only import config which is also imported by the Standard profile.
- core.entity_view_mode.node.full
- core.entity_view_mode.node.rss
- core.entity_view_mode.node.teaser
- field.storage.node.body
- system.action.node_delete_action
- system.action.node_make_sticky_action
- system.action.node_make_unsticky_action
- system.action.node_promote_action
- system.action.node_publish_action
- system.action.node_save_action
- system.action.node_unpromote_action
- system.action.node_unpublish_action
image:
# Only import config which is also imported by the Standard profile.
- image.style.medium
- image.style.large
- image.style.thumbnail
- image.style.wide
actions:
core.entity_form_display.node.article.default:
createIfNotExists:
targetEntityType: node
bundle: article
mode: default
status: true
setComponents:
- name: body
options:
type: text_textarea_with_summary
weight: 2
region: content
- name: created
options:
type: datetime_timestamp
weight: 10
region: content
- name: field_date
options:
type: smartdate_inline
weight: 1
region: content
- name: field_gallery
options:
type: image_image
weight: 3
region: content
- name: field_image
options:
type: image_image
weight: 1
region: content
- name: path
options:
type: path
weight: 30
region: content
- name: promote
options:
type: boolean_checkbox
weight: 15
region: content
- name: status
options:
type: boolean_checkbox
weight: 120
region: content
- name: sticky
options:
type: boolean_checkbox
weight: 16
region: content
- name: title
options:
type: string_textfield
weight: 0
region: content
- name: uid
options:
type: entity_reference_autocomplete
weight: 5
region: content
core.entity_view_display.node.article.default:
createIfNotExists:
targetEntityType: node
bundle: article
mode: default
status: true
setComponents:
- name: body
options:
type: text_default
label: hidden
weight: 2
region: content
- name: field_date
options:
type: smartdate_default
label: hidden
settings:
format_type: medium
format: compact
weight: 1
region: content
- name: field_image
options:
type: image
label: hidden
settings:
image_style: wide
image_loading:
attribute: eager
weight: 0
region: content
- name: field_gallery
options:
type: photoswipe_field_formatter
label: hidden
settings:
photoswipe_thumbnail_style_first: ''
photoswipe_thumbnail_style: large
photoswipe_image_style: ''
photoswipe_reference_image_field: ''
photoswipe_view_mode: default
image_loading:
attribute: lazy
third_party_settings:
photoswipe_dynamic_caption:
photoswipe_caption: title
photoswipe_caption_custom: ''
weight: 3
region: content
- name: field_tags
options:
type: entity_reference_label
label: hidden
weight: 4
region: content
- name: links
options:
weight: 100
region: content
core.entity_view_display.node.article.rss:
createIfNotExists:
targetEntityType: node
bundle: article
mode: rss
status: true
content:
links:
weight: 100
region: content
core.entity_view_display.node.article.teaser:
createIfNotExists:
targetEntityType: node
bundle: article
mode: teaser
status: true
content:
links:
weight: 100
region: content
setComponents:
- name: body
options:
type: text_summary_or_trimmed
label: hidden
weight: 0
region: content
- name: field_date
options:
type: smartdate_default
label: hidden
settings:
format_type: medium
format: date_only
weight: 1
region: content
- name: field_image
options:
type: image
label: hidden
settings:
image_style: medium
image_link: content
weight: -1
region: content
- name: field_tags
options:
type: entity_reference_label
label: hidden
weight: 2
region: content
