From 2485830227880cdc6408e8def304e0741ee38f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 22 Sep 2019 21:33:38 -0400 Subject: [PATCH] Enable comments on gleanings and collections Ref #12 --- ...y_form_display.node.collection.default.yml | 8 +++++ ...ity_form_display.node.gleaning.default.yml | 8 +++++ ...y_view_display.node.collection.default.yml | 12 +++++++ ...ity_view_display.node.gleaning.default.yml | 12 +++++++ .../field.field.node.collection.comment.yml | 33 +++++++++++++++++++ .../field.field.node.gleaning.comment.yml | 33 +++++++++++++++++++ 6 files changed, 106 insertions(+) create mode 100644 config/sync/field.field.node.collection.comment.yml create mode 100644 config/sync/field.field.node.gleaning.comment.yml diff --git a/config/sync/core.entity_form_display.node.collection.default.yml b/config/sync/core.entity_form_display.node.collection.default.yml index f825fa8..a63bd3d 100644 --- a/config/sync/core.entity_form_display.node.collection.default.yml +++ b/config/sync/core.entity_form_display.node.collection.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.node.collection.body + - field.field.node.collection.comment - field.field.node.collection.field_authors - field.field.node.collection.field_collection_items - field.field.node.collection.field_collection_type @@ -15,6 +16,7 @@ dependencies: - image.style.thumbnail - node.type.collection module: + - comment - image - metatag - path @@ -26,6 +28,12 @@ targetEntityType: node bundle: collection mode: default content: + comment: + weight: 26 + settings: { } + third_party_settings: { } + type: comment_default + region: content created: type: datetime_timestamp weight: 10 diff --git a/config/sync/core.entity_form_display.node.gleaning.default.yml b/config/sync/core.entity_form_display.node.gleaning.default.yml index fb94091..ec0daa3 100644 --- a/config/sync/core.entity_form_display.node.gleaning.default.yml +++ b/config/sync/core.entity_form_display.node.gleaning.default.yml @@ -4,11 +4,13 @@ status: true dependencies: config: - field.field.node.gleaning.body + - field.field.node.gleaning.comment - field.field.node.gleaning.field_image - field.field.node.gleaning.field_upload - image.style.thumbnail - node.type.gleaning module: + - comment - file - image - path @@ -27,6 +29,12 @@ content: placeholder: '' third_party_settings: { } region: content + comment: + weight: 124 + settings: { } + third_party_settings: { } + type: comment_default + region: content created: type: datetime_timestamp weight: 10 diff --git a/config/sync/core.entity_view_display.node.collection.default.yml b/config/sync/core.entity_view_display.node.collection.default.yml index cee26d6..b3ccce2 100644 --- a/config/sync/core.entity_view_display.node.collection.default.yml +++ b/config/sync/core.entity_view_display.node.collection.default.yml @@ -3,7 +3,9 @@ langcode: en status: true dependencies: config: + - core.entity_view_display.comment.comment.default - field.field.node.collection.body + - field.field.node.collection.comment - field.field.node.collection.field_authors - field.field.node.collection.field_collection_items - field.field.node.collection.field_collection_type @@ -14,6 +16,7 @@ dependencies: - field.field.node.collection.field_topics - node.type.collection module: + - comment - ds - image - metatag @@ -33,6 +36,15 @@ content: settings: { } third_party_settings: { } region: content + comment: + weight: 10 + label: above + settings: + view_mode: default + pager_id: 0 + third_party_settings: { } + type: comment_default + region: content field_authors: weight: 5 label: hidden diff --git a/config/sync/core.entity_view_display.node.gleaning.default.yml b/config/sync/core.entity_view_display.node.gleaning.default.yml index b8d4485..47b50c9 100644 --- a/config/sync/core.entity_view_display.node.gleaning.default.yml +++ b/config/sync/core.entity_view_display.node.gleaning.default.yml @@ -3,11 +3,14 @@ langcode: en status: true dependencies: config: + - core.entity_view_display.comment.comment.default - field.field.node.gleaning.body + - field.field.node.gleaning.comment - field.field.node.gleaning.field_image - field.field.node.gleaning.field_upload - node.type.gleaning module: + - comment - file - image - text @@ -24,6 +27,15 @@ content: settings: { } third_party_settings: { } region: content + comment: + weight: 104 + label: above + settings: + view_mode: default + pager_id: 0 + third_party_settings: { } + type: comment_default + region: content field_image: weight: 102 label: above diff --git a/config/sync/field.field.node.collection.comment.yml b/config/sync/field.field.node.collection.comment.yml new file mode 100644 index 0000000..fe28dc0 --- /dev/null +++ b/config/sync/field.field.node.collection.comment.yml @@ -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 diff --git a/config/sync/field.field.node.gleaning.comment.yml b/config/sync/field.field.node.gleaning.comment.yml new file mode 100644 index 0000000..48df688 --- /dev/null +++ b/config/sync/field.field.node.gleaning.comment.yml @@ -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