Add podcast content type

This commit is contained in:
Oliver Davies 2024-04-13 13:22:09 +01:00
parent bea7558324
commit d5c1c26fa4
9 changed files with 280 additions and 0 deletions

View file

@ -0,0 +1,22 @@
uuid: c494d2c7-b929-415f-91e1-a97a4d10f69d
langcode: en
status: true
dependencies:
config:
- node.type.podcast_episode
id: node.podcast_episode.promote
field_name: promote
entity_type: node
bundle: podcast_episode
label: 'Promoted to front page'
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean

View file

@ -0,0 +1,90 @@
uuid: a32477da-2b65-40fd-a797-0b9513c441c9
langcode: en
status: true
dependencies:
config:
- field.field.node.podcast_episode.body
- field.field.node.podcast_episode.field_episode_number
- node.type.podcast_episode
module:
- path
- text
id: node.podcast_episode.default
targetEntityType: node
bundle: podcast_episode
mode: default
content:
body:
type: text_textarea_with_summary
weight: 121
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
field_episode_number:
type: number
weight: 122
region: content
settings:
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 15
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
weight: 120
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 16
region: content
settings:
display_label: true
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
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 50
region: content
settings: { }
third_party_settings: { }
hidden: { }

View file

@ -0,0 +1,38 @@
uuid: 8aeb31ee-37e2-4c23-9e77-701a1c466bbe
langcode: en
status: true
dependencies:
config:
- field.field.node.podcast_episode.body
- field.field.node.podcast_episode.field_episode_number
- node.type.podcast_episode
module:
- text
- user
id: node.podcast_episode.default
targetEntityType: node
bundle: podcast_episode
mode: default
content:
body:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 101
region: content
field_episode_number:
type: number_integer
label: above
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 102
region: content
links:
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden: { }

View file

@ -0,0 +1,32 @@
uuid: f75ddb29-852d-4285-a1c9-40f7604f7a14
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.podcast_episode.body
- field.field.node.podcast_episode.field_episode_number
- node.type.podcast_episode
module:
- text
- user
id: node.podcast_episode.teaser
targetEntityType: node
bundle: podcast_episode
mode: teaser
content:
body:
type: text_summary_or_trimmed
label: hidden
settings:
trim_length: 600
third_party_settings: { }
weight: 101
region: content
links:
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden:
field_episode_number: true

View file

@ -0,0 +1,24 @@
uuid: e76577cd-ade0-4994-a138-a71de0caf532
langcode: en
status: true
dependencies:
config:
- field.storage.node.body
- node.type.podcast_episode
module:
- text
id: node.podcast_episode.body
field_name: body
entity_type: node
bundle: podcast_episode
label: Body
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: false
allowed_formats: { }
field_type: text_with_summary

View file

@ -0,0 +1,23 @@
uuid: 1e3de9ae-a3a9-42aa-882c-61e438d0e934
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_episode_number
- node.type.podcast_episode
id: node.podcast_episode.field_episode_number
field_name: field_episode_number
entity_type: node
bundle: podcast_episode
label: 'Episode number'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: 1
max: null
prefix: ''
suffix: ''
field_type: integer

View file

@ -0,0 +1,20 @@
uuid: 6048250a-9342-4446-a313-50fdf425489c
langcode: en
status: true
dependencies:
module:
- node
id: node.field_episode_number
field_name: field_episode_number
entity_type: node
type: integer
settings:
unsigned: false
size: normal
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View file

@ -0,0 +1,17 @@
uuid: c407844e-5abb-4393-94e6-bde36deb1e5a
langcode: en
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus: { }
parent: ''
name: 'Podcast episode'
type: podcast_episode
description: 'A podcast episode.'
help: ''
new_revision: true
preview_mode: 1
display_submitted: true

View file

@ -0,0 +1,14 @@
uuid: be91db3c-a13d-47c4-ada5-d52526281bb5
langcode: en
status: true
dependencies:
config:
- node.type.podcast_episode
id: node_type_podcast_episode
entity_type_id: node_type
entity_id: podcast_episode
action: display_page
allow_override: 1
redirect: ''
redirect_code: 301
redirect_fallback_action: access_denied