Add daily email testimonials

This commit is contained in:
Oliver Davies 2025-07-04 10:10:05 +01:00
parent 768d7f85a6
commit 606c7314fc
45 changed files with 2342 additions and 13 deletions

View file

@ -6,6 +6,7 @@ dependencies:
- field.field.node.testimonial.body
- field.field.node.testimonial.field_image
- field.field.node.testimonial.field_role
- field.field.node.testimonial.field_testimonial_type
- field.field.node.testimonial.field_url
- field.field.node.testimonial.field_weight
- image.style.thumbnail
@ -14,6 +15,7 @@ dependencies:
- image
- link
- path
- tagify
- text
- weight
id: node.testimonial.default
@ -53,6 +55,19 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_testimonial_type:
type: tagify_entity_reference_autocomplete_widget
weight: 124
region: content
settings:
match_operator: CONTAINS
match_limit: 10
placeholder: ''
suggestions_dropdown: 1
show_entity_id: 0
show_info_label: 0
info_label: ''
third_party_settings: { }
field_url:
type: link_default
weight: 122
@ -117,4 +132,9 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 50
region: content
settings: { }
third_party_settings: { }
hidden: { }

View file

@ -6,6 +6,7 @@ dependencies:
- field.field.node.testimonial.body
- field.field.node.testimonial.field_image
- field.field.node.testimonial.field_role
- field.field.node.testimonial.field_testimonial_type
- field.field.node.testimonial.field_url
- field.field.node.testimonial.field_weight
- image.style.thumbnail
@ -26,7 +27,7 @@ content:
label: hidden
settings: { }
third_party_settings: { }
weight: 0
weight: 1
region: content
field_image:
type: image
@ -37,7 +38,7 @@ content:
image_loading:
attribute: lazy
third_party_settings: { }
weight: -1
weight: 0
region: content
field_role:
type: string
@ -45,7 +46,7 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
weight: 101
weight: 3
region: content
field_url:
type: link
@ -57,18 +58,19 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 102
weight: 4
region: content
field_weight:
type: default_weight
label: above
settings: { }
third_party_settings: { }
weight: 103
weight: 5
region: content
links:
settings: { }
third_party_settings: { }
weight: 100
weight: 2
region: content
hidden: { }
hidden:
field_testimonial_type: true

View file

@ -7,6 +7,7 @@ dependencies:
- field.field.node.testimonial.body
- field.field.node.testimonial.field_image
- field.field.node.testimonial.field_role
- field.field.node.testimonial.field_testimonial_type
- field.field.node.testimonial.field_url
- field.field.node.testimonial.field_weight
- image.style.medium
@ -46,5 +47,6 @@ content:
region: content
hidden:
field_role: true
field_testimonial_type: true
field_url: true
field_weight: true

View file

@ -0,0 +1,29 @@
uuid: 1c3be925-56e1-4467-9c88-95c096631935
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_testimonial_type
- node.type.testimonial
- taxonomy.vocabulary.testimonial_type
id: node.testimonial.field_testimonial_type
field_name: field_testimonial_type
entity_type: node
bundle: testimonial
label: 'Testimonial type'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
testimonial_type: testimonial_type
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View file

@ -0,0 +1,20 @@
uuid: bd75e259-c3fc-4918-93e7-80abb358e9c4
langcode: en
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_testimonial_type
field_name: field_testimonial_type
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View file

@ -0,0 +1,9 @@
uuid: b1e5532d-a501-4e71-b3c6-ccde641941be
langcode: en
status: true
dependencies: { }
name: 'Testimonial type'
vid: testimonial_type
description: null
weight: 0
new_revision: true

View file

@ -5,8 +5,12 @@ dependencies:
config:
- core.entity_view_mode.node.full
- node.type.testimonial
- taxonomy.vocabulary.testimonial_type
content:
- 'taxonomy_term:testimonial_type:5a23da64-7e26-42fd-8d5d-d7e5f98f54a1'
module:
- node
- taxonomy
- user
id: testimonials
label: Testimonials
@ -91,7 +95,7 @@ display:
type: some
options:
offset: 0
items_per_page: 5
items_per_page: 0
exposed_form:
type: basic
options:
@ -198,10 +202,101 @@ display:
tags: { }
block_1:
id: block_1
display_title: Block
display_title: 'All testimonials block'
display_plugin: block
position: 1
display_options:
display_description: ''
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
block_2:
id: block_2
display_title: 'Daily email testimonials block'
display_plugin: block
position: 1
display_options:
filters:
status:
id: status
table: node_field_data
field: status
entity_type: node
entity_field: status
plugin_id: boolean
value: '1'
group: 1
expose:
operator: ''
type:
id: type
table: node_field_data
field: type
entity_type: node
entity_field: type
plugin_id: bundle
value:
testimonial: testimonial
field_testimonial_type_target_id:
id: field_testimonial_type_target_id
table: node__field_testimonial_type
field: field_testimonial_type_target_id
relationship: none
group_type: group
admin_label: ''
plugin_id: taxonomy_index_tid
operator: or
value:
1563: 1563
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
vid: testimonial_type
type: select
hierarchy: false
limit: true
error_message: true
filter_groups:
operator: AND
groups:
1: AND
defaults:
filters: false
filter_groups: false
display_description: ''
display_extenders: { }
cache_metadata:
max-age: -1