From 2bba847ae536bf57158ff9d6b3c0693f5a6e8922 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 8 May 2020 13:38:28 +0100 Subject: [PATCH] Add new talk fields --- ...y_form_display.paragraph.event.default.yml | 21 +++++++++++++++-- ...e.entity_view_display.node.talk.teaser.yml | 20 ++++++++-------- ...y_view_display.paragraph.event.default.yml | 20 ++++++++++++++++ ...d.field.paragraph.event.field_location.yml | 19 +++++++++++++++ ...eld.field.paragraph.event.field_remote.yml | 23 +++++++++++++++++++ ...field.storage.paragraph.field_location.yml | 21 +++++++++++++++++ .../field.storage.paragraph.field_remote.yml | 18 +++++++++++++++ .../paragraphs.paragraphs_type.event.yml | 1 + 8 files changed, 130 insertions(+), 13 deletions(-) create mode 100644 config/default/field.field.paragraph.event.field_location.yml create mode 100644 config/default/field.field.paragraph.event.field_remote.yml create mode 100644 config/default/field.storage.paragraph.field_location.yml create mode 100644 config/default/field.storage.paragraph.field_remote.yml diff --git a/config/default/core.entity_form_display.paragraph.event.default.yml b/config/default/core.entity_form_display.paragraph.event.default.yml index 05d0cd63d..39781da25 100644 --- a/config/default/core.entity_form_display.paragraph.event.default.yml +++ b/config/default/core.entity_form_display.paragraph.event.default.yml @@ -5,7 +5,9 @@ dependencies: config: - field.field.paragraph.event.field_date - field.field.paragraph.event.field_link + - field.field.paragraph.event.field_location - field.field.paragraph.event.field_name + - field.field.paragraph.event.field_remote - paragraphs.paragraphs_type.event module: - datetime @@ -16,19 +18,27 @@ bundle: event mode: default content: field_date: - weight: 1 + weight: 2 settings: { } third_party_settings: { } type: datetime_default region: content field_link: - weight: 2 + weight: 4 settings: placeholder_url: '' placeholder_title: '' third_party_settings: { } type: link_default region: content + field_location: + weight: 1 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content field_name: weight: 0 settings: @@ -37,6 +47,13 @@ content: third_party_settings: { } type: string_textfield region: content + field_remote: + weight: 3 + settings: + display_label: true + third_party_settings: { } + type: boolean_checkbox + region: content hidden: created: true status: true diff --git a/config/default/core.entity_view_display.node.talk.teaser.yml b/config/default/core.entity_view_display.node.talk.teaser.yml index f75304c90..c6d292f70 100644 --- a/config/default/core.entity_view_display.node.talk.teaser.yml +++ b/config/default/core.entity_view_display.node.talk.teaser.yml @@ -11,28 +11,26 @@ dependencies: - field.field.node.talk.field_video - node.type.talk module: - - text - user id: node.talk.teaser targetEntityType: node bundle: talk mode: teaser content: - body: - label: hidden - type: text_summary_or_trimmed - weight: 101 - settings: - trim_length: 600 - third_party_settings: { } + field_excerpt: + type: basic_string + weight: 0 region: content - links: - weight: 100 + label: hidden settings: { } third_party_settings: { } + links: + weight: 1 region: content + settings: { } + third_party_settings: { } hidden: + body: true field_events: true - field_excerpt: true field_slides: true field_video: true diff --git a/config/default/core.entity_view_display.paragraph.event.default.yml b/config/default/core.entity_view_display.paragraph.event.default.yml index 0252b0648..3d77ce8c6 100644 --- a/config/default/core.entity_view_display.paragraph.event.default.yml +++ b/config/default/core.entity_view_display.paragraph.event.default.yml @@ -5,7 +5,9 @@ dependencies: config: - field.field.paragraph.event.field_date - field.field.paragraph.event.field_link + - field.field.paragraph.event.field_location - field.field.paragraph.event.field_name + - field.field.paragraph.event.field_remote - paragraphs.paragraphs_type.event module: - datetime @@ -36,6 +38,14 @@ content: third_party_settings: { } type: link region: content + field_location: + weight: 4 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content field_name: weight: 0 label: above @@ -44,4 +54,14 @@ content: third_party_settings: { } type: string region: content + field_remote: + weight: 3 + label: above + settings: + format: default + format_custom_false: '' + format_custom_true: '' + third_party_settings: { } + type: boolean + region: content hidden: { } diff --git a/config/default/field.field.paragraph.event.field_location.yml b/config/default/field.field.paragraph.event.field_location.yml new file mode 100644 index 000000000..a2bc69f8e --- /dev/null +++ b/config/default/field.field.paragraph.event.field_location.yml @@ -0,0 +1,19 @@ +uuid: 328a4776-2e9a-4fea-a1ec-48c0411cc489 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_location + - paragraphs.paragraphs_type.event +id: paragraph.event.field_location +field_name: field_location +entity_type: paragraph +bundle: event +label: Location +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/default/field.field.paragraph.event.field_remote.yml b/config/default/field.field.paragraph.event.field_remote.yml new file mode 100644 index 000000000..ad3cf1478 --- /dev/null +++ b/config/default/field.field.paragraph.event.field_remote.yml @@ -0,0 +1,23 @@ +uuid: 5764fb06-990c-4fdb-b4bb-e31be33c4bce +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_remote + - paragraphs.paragraphs_type.event +id: paragraph.event.field_remote +field_name: field_remote +entity_type: paragraph +bundle: event +label: Remote +description: 'Was this talk presented remotely?' +required: false +translatable: false +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'Yes' + off_label: 'No' +field_type: boolean diff --git a/config/default/field.storage.paragraph.field_location.yml b/config/default/field.storage.paragraph.field_location.yml new file mode 100644 index 000000000..dbebf4544 --- /dev/null +++ b/config/default/field.storage.paragraph.field_location.yml @@ -0,0 +1,21 @@ +uuid: f8fb22d5-233e-481d-87e1-0d55dff4bc31 +langcode: en +status: true +dependencies: + module: + - paragraphs +id: paragraph.field_location +field_name: field_location +entity_type: paragraph +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/default/field.storage.paragraph.field_remote.yml b/config/default/field.storage.paragraph.field_remote.yml new file mode 100644 index 000000000..b8c358e51 --- /dev/null +++ b/config/default/field.storage.paragraph.field_remote.yml @@ -0,0 +1,18 @@ +uuid: 6910b08a-4896-475a-b1f6-d41a157d1061 +langcode: en +status: true +dependencies: + module: + - paragraphs +id: paragraph.field_remote +field_name: field_remote +entity_type: paragraph +type: boolean +settings: { } +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/default/paragraphs.paragraphs_type.event.yml b/config/default/paragraphs.paragraphs_type.event.yml index 6b95aaddd..2799aabd9 100644 --- a/config/default/paragraphs.paragraphs_type.event.yml +++ b/config/default/paragraphs.paragraphs_type.event.yml @@ -5,5 +5,6 @@ dependencies: { } id: event label: Event icon_uuid: null +icon_default: null description: '' behavior_plugins: { }