From 6a8b400008d142b3dff09391289571a78fe9282c Mon Sep 17 00:00:00 2001 From: Gaurav Mahlawat Date: Mon, 1 Apr 2024 11:05:32 +0530 Subject: [PATCH] localized-landing-pages: Fields configured to add dynamic mautic forms --- ...ragraph.localized_contact_form.default.yml | 9 +++++++++ ...play.paragraph.newsletter_form.default.yml | 9 +++++++++ ...ragraph.localized_contact_form.default.yml | 9 +++++++++ ...play.paragraph.newsletter_form.default.yml | 9 +++++++++ ...graph.citation_boxes.field_modal_popup.yml | 2 +- ...aph.localized_contact_form.field_title.yml | 19 +++++++++++++++++++ ....paragraph.newsletter_form.field_title.yml | 19 +++++++++++++++++++ ...aragraph--localized-contact-form.html.twig | 2 +- .../paragraph--newsletter-form.html.twig | 2 +- 9 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 config/sync/field.field.paragraph.localized_contact_form.field_title.yml create mode 100644 config/sync/field.field.paragraph.newsletter_form.field_title.yml diff --git a/config/sync/core.entity_form_display.paragraph.localized_contact_form.default.yml b/config/sync/core.entity_form_display.paragraph.localized_contact_form.default.yml index f8e9ed58..ec5fc9fe 100644 --- a/config/sync/core.entity_form_display.paragraph.localized_contact_form.default.yml +++ b/config/sync/core.entity_form_display.paragraph.localized_contact_form.default.yml @@ -6,6 +6,7 @@ dependencies: - field.field.paragraph.localized_contact_form.field_body - field.field.paragraph.localized_contact_form.field_link_list_title - field.field.paragraph.localized_contact_form.field_subtitle + - field.field.paragraph.localized_contact_form.field_title - paragraphs.paragraphs_type.localized_contact_form module: - text @@ -38,6 +39,14 @@ content: size: 60 placeholder: '' third_party_settings: { } + field_title: + type: string_textfield + weight: 13 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } translation: weight: 10 region: content diff --git a/config/sync/core.entity_form_display.paragraph.newsletter_form.default.yml b/config/sync/core.entity_form_display.paragraph.newsletter_form.default.yml index dfff3700..9f675df0 100644 --- a/config/sync/core.entity_form_display.paragraph.newsletter_form.default.yml +++ b/config/sync/core.entity_form_display.paragraph.newsletter_form.default.yml @@ -5,6 +5,7 @@ dependencies: config: - field.field.paragraph.newsletter_form.field_link_list_title - field.field.paragraph.newsletter_form.field_newsletter_body + - field.field.paragraph.newsletter_form.field_title - paragraphs.paragraphs_type.newsletter_form module: - text @@ -29,6 +30,14 @@ content: rows: 5 placeholder: '' third_party_settings: { } + field_title: + type: string_textfield + weight: 12 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } translation: weight: 10 region: content diff --git a/config/sync/core.entity_view_display.paragraph.localized_contact_form.default.yml b/config/sync/core.entity_view_display.paragraph.localized_contact_form.default.yml index 336a16b7..8113fa3a 100644 --- a/config/sync/core.entity_view_display.paragraph.localized_contact_form.default.yml +++ b/config/sync/core.entity_view_display.paragraph.localized_contact_form.default.yml @@ -6,6 +6,7 @@ dependencies: - field.field.paragraph.localized_contact_form.field_body - field.field.paragraph.localized_contact_form.field_link_list_title - field.field.paragraph.localized_contact_form.field_subtitle + - field.field.paragraph.localized_contact_form.field_title - paragraphs.paragraphs_type.localized_contact_form module: - text @@ -37,5 +38,13 @@ content: third_party_settings: { } weight: 0 region: content + field_title: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 3 + region: content hidden: search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.paragraph.newsletter_form.default.yml b/config/sync/core.entity_view_display.paragraph.newsletter_form.default.yml index 08948b50..edb6253a 100644 --- a/config/sync/core.entity_view_display.paragraph.newsletter_form.default.yml +++ b/config/sync/core.entity_view_display.paragraph.newsletter_form.default.yml @@ -5,6 +5,7 @@ dependencies: config: - field.field.paragraph.newsletter_form.field_link_list_title - field.field.paragraph.newsletter_form.field_newsletter_body + - field.field.paragraph.newsletter_form.field_title - paragraphs.paragraphs_type.newsletter_form module: - text @@ -28,5 +29,13 @@ content: third_party_settings: { } weight: 1 region: content + field_title: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 2 + region: content hidden: search_api_excerpt: true diff --git a/config/sync/field.field.paragraph.citation_boxes.field_modal_popup.yml b/config/sync/field.field.paragraph.citation_boxes.field_modal_popup.yml index a908560e..e84b51e3 100644 --- a/config/sync/field.field.paragraph.citation_boxes.field_modal_popup.yml +++ b/config/sync/field.field.paragraph.citation_boxes.field_modal_popup.yml @@ -11,7 +11,7 @@ id: paragraph.citation_boxes.field_modal_popup field_name: field_modal_popup entity_type: paragraph bundle: citation_boxes -label: 'Modal popup' +label: 'Modal popup Content' description: '' required: false translatable: true diff --git a/config/sync/field.field.paragraph.localized_contact_form.field_title.yml b/config/sync/field.field.paragraph.localized_contact_form.field_title.yml new file mode 100644 index 00000000..2b5733e1 --- /dev/null +++ b/config/sync/field.field.paragraph.localized_contact_form.field_title.yml @@ -0,0 +1,19 @@ +uuid: 9581151a-da83-4836-9584-0f0e840bdbab +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_title + - paragraphs.paragraphs_type.localized_contact_form +id: paragraph.localized_contact_form.field_title +field_name: field_title +entity_type: paragraph +bundle: localized_contact_form +label: 'Form URL' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.paragraph.newsletter_form.field_title.yml b/config/sync/field.field.paragraph.newsletter_form.field_title.yml new file mode 100644 index 00000000..264e4bb1 --- /dev/null +++ b/config/sync/field.field.paragraph.newsletter_form.field_title.yml @@ -0,0 +1,19 @@ +uuid: a1c8a798-9cf3-4635-8873-1fefe002a5c0 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_title + - paragraphs.paragraphs_type.newsletter_form +id: paragraph.newsletter_form.field_title +field_name: field_title +entity_type: paragraph +bundle: newsletter_form +label: 'Form URL' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/docroot/themes/custom/mauticorg_base/templates/paragraph/paragraph--localized-contact-form.html.twig b/docroot/themes/custom/mauticorg_base/templates/paragraph/paragraph--localized-contact-form.html.twig index 0a42b659..c5cc018f 100644 --- a/docroot/themes/custom/mauticorg_base/templates/paragraph/paragraph--localized-contact-form.html.twig +++ b/docroot/themes/custom/mauticorg_base/templates/paragraph/paragraph--localized-contact-form.html.twig @@ -59,7 +59,7 @@
- +
{% endblock %} diff --git a/docroot/themes/custom/mauticorg_base/templates/paragraph/paragraph--newsletter-form.html.twig b/docroot/themes/custom/mauticorg_base/templates/paragraph/paragraph--newsletter-form.html.twig index ba5f3d7c..37a55959 100644 --- a/docroot/themes/custom/mauticorg_base/templates/paragraph/paragraph--newsletter-form.html.twig +++ b/docroot/themes/custom/mauticorg_base/templates/paragraph/paragraph--newsletter-form.html.twig @@ -59,7 +59,7 @@
- +
{% endblock %}