Add publication date to Collections

This commit is contained in:
benjamin melançon 2019-09-30 14:22:52 -04:00
parent cb325c229a
commit 3d172cc0b0
3 changed files with 50 additions and 7 deletions

View file

@ -11,6 +11,7 @@ dependencies:
- field.field.node.collection.field_collection_type
- field.field.node.collection.field_image
- field.field.node.collection.field_meta_tags
- field.field.node.collection.field_publication_date
- field.field.node.collection.field_summary
- field.field.node.collection.field_tags
- field.field.node.collection.field_topics
@ -19,6 +20,7 @@ dependencies:
module:
- comment
- cshs
- datetime
- image
- metatag
- paragraphs
@ -32,14 +34,14 @@ bundle: collection
mode: default
content:
comment:
weight: 15
weight: 16
settings: { }
third_party_settings: { }
type: comment_default
region: content
created:
type: datetime_timestamp
weight: 11
weight: 13
region: content
settings: { }
third_party_settings: { }
@ -84,6 +86,12 @@ content:
third_party_settings: { }
type: metatag_firehose
region: content
field_publication_date:
weight: 9
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_summary:
weight: 4
settings:
@ -103,7 +111,7 @@ content:
region: content
path:
type: path
weight: 9
weight: 11
region: content
settings: { }
third_party_settings: { }
@ -111,21 +119,21 @@ content:
type: boolean_checkbox
settings:
display_label: true
weight: 13
weight: 10
region: content
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 14
weight: 15
region: content
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 12
weight: 14
region: content
third_party_settings: { }
title:
@ -146,7 +154,7 @@ content:
region: content
third_party_settings: { }
url_redirects:
weight: 10
weight: 12
region: content
settings: { }
third_party_settings: { }

View file

@ -12,12 +12,14 @@ dependencies:
- field.field.node.collection.field_collection_type
- field.field.node.collection.field_image
- field.field.node.collection.field_meta_tags
- field.field.node.collection.field_publication_date
- field.field.node.collection.field_summary
- field.field.node.collection.field_tags
- field.field.node.collection.field_topics
- node.type.collection
module:
- comment
- datetime
- ds
- image
- metatag
@ -89,6 +91,15 @@ content:
third_party_settings: { }
type: metatag_empty_formatter
region: content
field_publication_date:
weight: 11
label: above
settings:
format_type: medium
timezone_override: ''
third_party_settings: { }
type: datetime_default
region: content
field_summary:
weight: 1
label: hidden

View file

@ -0,0 +1,24 @@
uuid: 75c9445f-460d-4ea7-856d-2a88033d55bc
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_publication_date
- node.type.collection
module:
- datetime
id: node.collection.field_publication_date
field_name: field_publication_date
entity_type: node
bundle: collection
label: 'Publication date'
description: ''
required: true
translatable: true
default_value:
-
default_date_type: now
default_date: now
default_value_callback: ''
settings: { }
field_type: datetime