Enable comments on gleanings and collections

Ref #12
This commit is contained in:
benjamin melançon 2019-09-22 21:33:38 -04:00
parent c74b391332
commit 2485830227
6 changed files with 106 additions and 0 deletions

View file

@ -4,6 +4,7 @@ status: true
dependencies: dependencies:
config: config:
- field.field.node.collection.body - field.field.node.collection.body
- field.field.node.collection.comment
- field.field.node.collection.field_authors - field.field.node.collection.field_authors
- field.field.node.collection.field_collection_items - field.field.node.collection.field_collection_items
- field.field.node.collection.field_collection_type - field.field.node.collection.field_collection_type
@ -15,6 +16,7 @@ dependencies:
- image.style.thumbnail - image.style.thumbnail
- node.type.collection - node.type.collection
module: module:
- comment
- image - image
- metatag - metatag
- path - path
@ -26,6 +28,12 @@ targetEntityType: node
bundle: collection bundle: collection
mode: default mode: default
content: content:
comment:
weight: 26
settings: { }
third_party_settings: { }
type: comment_default
region: content
created: created:
type: datetime_timestamp type: datetime_timestamp
weight: 10 weight: 10

View file

@ -4,11 +4,13 @@ status: true
dependencies: dependencies:
config: config:
- field.field.node.gleaning.body - field.field.node.gleaning.body
- field.field.node.gleaning.comment
- field.field.node.gleaning.field_image - field.field.node.gleaning.field_image
- field.field.node.gleaning.field_upload - field.field.node.gleaning.field_upload
- image.style.thumbnail - image.style.thumbnail
- node.type.gleaning - node.type.gleaning
module: module:
- comment
- file - file
- image - image
- path - path
@ -27,6 +29,12 @@ content:
placeholder: '' placeholder: ''
third_party_settings: { } third_party_settings: { }
region: content region: content
comment:
weight: 124
settings: { }
third_party_settings: { }
type: comment_default
region: content
created: created:
type: datetime_timestamp type: datetime_timestamp
weight: 10 weight: 10

View file

@ -3,7 +3,9 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- core.entity_view_display.comment.comment.default
- field.field.node.collection.body - field.field.node.collection.body
- field.field.node.collection.comment
- field.field.node.collection.field_authors - field.field.node.collection.field_authors
- field.field.node.collection.field_collection_items - field.field.node.collection.field_collection_items
- field.field.node.collection.field_collection_type - field.field.node.collection.field_collection_type
@ -14,6 +16,7 @@ dependencies:
- field.field.node.collection.field_topics - field.field.node.collection.field_topics
- node.type.collection - node.type.collection
module: module:
- comment
- ds - ds
- image - image
- metatag - metatag
@ -33,6 +36,15 @@ content:
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
region: content region: content
comment:
weight: 10
label: above
settings:
view_mode: default
pager_id: 0
third_party_settings: { }
type: comment_default
region: content
field_authors: field_authors:
weight: 5 weight: 5
label: hidden label: hidden

View file

@ -3,11 +3,14 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- core.entity_view_display.comment.comment.default
- field.field.node.gleaning.body - field.field.node.gleaning.body
- field.field.node.gleaning.comment
- field.field.node.gleaning.field_image - field.field.node.gleaning.field_image
- field.field.node.gleaning.field_upload - field.field.node.gleaning.field_upload
- node.type.gleaning - node.type.gleaning
module: module:
- comment
- file - file
- image - image
- text - text
@ -24,6 +27,15 @@ content:
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
region: content region: content
comment:
weight: 104
label: above
settings:
view_mode: default
pager_id: 0
third_party_settings: { }
type: comment_default
region: content
field_image: field_image:
weight: 102 weight: 102
label: above label: above

View file

@ -0,0 +1,33 @@
uuid: 4f16f147-43d0-4fc8-a857-d2f139cc97d3
langcode: en
status: true
dependencies:
config:
- field.storage.node.comment
- node.type.collection
module:
- comment
id: node.collection.comment
field_name: comment
entity_type: node
bundle: collection
label: Comments
description: ''
required: false
translatable: true
default_value:
-
status: 2
cid: 0
last_comment_timestamp: 0
last_comment_name: null
last_comment_uid: 0
comment_count: 0
default_value_callback: ''
settings:
default_mode: 0
per_page: 50
anonymous: 0
form_location: true
preview: 0
field_type: comment

View file

@ -0,0 +1,33 @@
uuid: 22e997d2-daae-49ef-9172-93c364d69c28
langcode: en
status: true
dependencies:
config:
- field.storage.node.comment
- node.type.gleaning
module:
- comment
id: node.gleaning.comment
field_name: comment
entity_type: node
bundle: gleaning
label: Comments
description: ''
required: false
translatable: true
default_value:
-
status: 2
cid: 0
last_comment_timestamp: 0
last_comment_name: null
last_comment_uid: 0
comment_count: 0
default_value_callback: ''
settings:
default_mode: 0
per_page: 50
anonymous: 0
form_location: true
preview: 0
field_type: comment