Skip to content

Commit

Permalink
localized-landing-pages: Fields configured to add dynamic mautic forms
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravaxl committed Apr 1, 2024
1 parent 6c7a5e1 commit 6a8b400
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 3 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand All @@ -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
Expand Down
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Up @@ -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
Expand All @@ -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
Expand Up @@ -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
Expand Down
@@ -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
19 changes: 19 additions & 0 deletions 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
Expand Up @@ -59,7 +59,7 @@
</div>

<div class="contact-form__mautic">
<script type="text/javascript" src="//m.mautic.org/form/generate.js?id=28"></script>
<script type="text/javascript" src="{{ content.field_title.0 }}"></script>
</div>
</div>
{% endblock %}
Expand Down
Expand Up @@ -59,7 +59,7 @@
<div class="right-container">
<h2 class="newsletter-form__title">{{ content.field_link_list_title.0 }}</h2>
<div class="newsletter-form__body">{{ content.field_newsletter_body.0|raw }}</div>
<script type="text/javascript" src="//m.mautic.org/form/generate.js?id=27"></script>
<script type="text/javascript" src="{{ content.field_title.0 }}"></script>
</div>
</div>
{% endblock %}
Expand Down

0 comments on commit 6a8b400

Please sign in to comment.