Add talk type field
This commit is contained in:
parent
7d71915518
commit
239b2c071c
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,7 +5,7 @@
|
|||
!/.github/
|
||||
!/.idea/
|
||||
!/bin/
|
||||
!/config/
|
||||
!/config/**
|
||||
!/Makefile
|
||||
!/phpcs.xml.dist
|
||||
!/phpstan.neon
|
||||
|
|
|
@ -7,6 +7,7 @@ dependencies:
|
|||
- field.field.node.talk.field_events
|
||||
- field.field.node.talk.field_excerpt
|
||||
- field.field.node.talk.field_slides
|
||||
- field.field.node.talk.field_type
|
||||
- field.field.node.talk.field_video
|
||||
- node.type.talk
|
||||
module:
|
||||
|
@ -63,6 +64,12 @@ content:
|
|||
third_party_settings: { }
|
||||
type: speakerdeck_widget
|
||||
region: content
|
||||
field_type:
|
||||
weight: 52
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: options_select
|
||||
region: content
|
||||
field_video:
|
||||
weight: 7
|
||||
settings:
|
||||
|
|
|
@ -7,10 +7,12 @@ dependencies:
|
|||
- field.field.node.talk.field_events
|
||||
- field.field.node.talk.field_excerpt
|
||||
- field.field.node.talk.field_slides
|
||||
- field.field.node.talk.field_type
|
||||
- field.field.node.talk.field_video
|
||||
- node.type.talk
|
||||
module:
|
||||
- entity_reference_revisions
|
||||
- options
|
||||
- speakerdeck_field
|
||||
- text
|
||||
- user
|
||||
|
@ -42,6 +44,13 @@ content:
|
|||
third_party_settings: { }
|
||||
type: speakerdeck_formatter
|
||||
region: content
|
||||
field_type:
|
||||
weight: 5
|
||||
label: above
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: list_default
|
||||
region: content
|
||||
field_video:
|
||||
type: entity_reference_entity_view
|
||||
weight: 2
|
||||
|
|
|
@ -8,6 +8,7 @@ dependencies:
|
|||
- field.field.node.talk.field_events
|
||||
- field.field.node.talk.field_excerpt
|
||||
- field.field.node.talk.field_slides
|
||||
- field.field.node.talk.field_type
|
||||
- field.field.node.talk.field_video
|
||||
- node.type.talk
|
||||
module:
|
||||
|
@ -33,4 +34,5 @@ hidden:
|
|||
body: true
|
||||
field_events: true
|
||||
field_slides: true
|
||||
field_type: true
|
||||
field_video: true
|
||||
|
|
|
@ -41,6 +41,7 @@ module:
|
|||
migrate_tools: 0
|
||||
node: 0
|
||||
opd_talks: 0
|
||||
options: 0
|
||||
page_cache: 0
|
||||
path: 0
|
||||
path_alias: 0
|
||||
|
|
21
config/default/field.field.node.talk.field_type.yml
Normal file
21
config/default/field.field.node.talk.field_type.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
uuid: 346d016f-1b73-4f4d-a55f-7897157556ca
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_type
|
||||
- node.type.talk
|
||||
module:
|
||||
- options
|
||||
id: node.talk.field_type
|
||||
field_name: field_type
|
||||
entity_type: node
|
||||
bundle: talk
|
||||
label: Type
|
||||
description: ''
|
||||
required: true
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: list_string
|
30
config/default/field.storage.node.field_type.yml
Normal file
30
config/default/field.storage.node.field_type.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
uuid: fb33d12b-713e-4017-9b63-bf3f3d73d4eb
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
- options
|
||||
id: node.field_type
|
||||
field_name: field_type
|
||||
entity_type: node
|
||||
type: list_string
|
||||
settings:
|
||||
allowed_values:
|
||||
-
|
||||
value: talk
|
||||
label: Talk
|
||||
-
|
||||
value: lightning
|
||||
label: 'Lightning talk'
|
||||
-
|
||||
value: workshop
|
||||
label: Workshop
|
||||
allowed_values_function: ''
|
||||
module: options
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
Loading…
Reference in a new issue