Create a block of testimonials

Sorted by weight, added using the Weight module.
https://www.drupal.org/project/weight

If two testimonials have the same weight, they are sorted by their
created date.
This commit is contained in:
Oliver Davies 2025-05-16 00:37:24 +01:00
parent b8ca93ff2b
commit cfb98aea2f
15 changed files with 381 additions and 14 deletions

View file

@ -7,13 +7,15 @@ dependencies:
- field.field.node.testimonial.field_image
- field.field.node.testimonial.field_role
- field.field.node.testimonial.field_url
- image.style.wide
- field.field.node.testimonial.field_weight
- image.style.thumbnail
- node.type.testimonial
module:
- image
- link
- text
- user
- weight
id: node.testimonial.default
targetEntityType: node
bundle: testimonial
@ -31,9 +33,9 @@ content:
label: hidden
settings:
image_link: ''
image_style: wide
image_style: thumbnail
image_loading:
attribute: eager
attribute: lazy
third_party_settings: { }
weight: -1
region: content
@ -57,6 +59,13 @@ content:
third_party_settings: { }
weight: 102
region: content
field_weight:
type: default_weight
label: above
settings: { }
third_party_settings: { }
weight: 103
region: content
links:
settings: { }
third_party_settings: { }