From aff73e7fbdd00159976533df4635ad864993178a Mon Sep 17 00:00:00 2001 From: GitSync Date: Sun, 30 Aug 2026 15:25:44 +0200 Subject: [PATCH] gallery-2/3: use page media ordering instead of explicit image list field --- themes/natascha/blueprints/gallery-2.yaml | 11 ----------- themes/natascha/blueprints/gallery-3.yaml | 11 ----------- themes/natascha/templates/gallery-2.html.twig | 2 +- themes/natascha/templates/gallery-3.html.twig | 2 +- 4 files changed, 2 insertions(+), 24 deletions(-) diff --git a/themes/natascha/blueprints/gallery-2.yaml b/themes/natascha/blueprints/gallery-2.yaml index 54d625b..1f06cdb 100644 --- a/themes/natascha/blueprints/gallery-2.yaml +++ b/themes/natascha/blueprints/gallery-2.yaml @@ -23,17 +23,6 @@ form: label: Tekst rows: 12 - header.section1_images: - type: list - label: "Foto's" - help: "Sleep om te herschikken." - style: vertical - collapsed: false - fields: - .image: - type: pagemediaselect - label: Foto - preview_images: true content: unset@: true options: diff --git a/themes/natascha/blueprints/gallery-3.yaml b/themes/natascha/blueprints/gallery-3.yaml index 87da64b..a52e11e 100644 --- a/themes/natascha/blueprints/gallery-3.yaml +++ b/themes/natascha/blueprints/gallery-3.yaml @@ -23,17 +23,6 @@ form: label: Tekst rows: 12 - header.section1_images: - type: list - label: "Foto's" - help: "Sleep om te herschikken." - style: vertical - collapsed: false - fields: - .image: - type: pagemediaselect - label: Foto - preview_images: true content: unset@: true options: diff --git a/themes/natascha/templates/gallery-2.html.twig b/themes/natascha/templates/gallery-2.html.twig index b72d67d..0d7b9fc 100644 --- a/themes/natascha/templates/gallery-2.html.twig +++ b/themes/natascha/templates/gallery-2.html.twig @@ -9,7 +9,7 @@ {% import 'galerie.html.twig' as gallery %} {% block content %} -{% set section1_images = (page.header.section1_images ?? [])|map(item => page.media[item.image] ?? null)|filter(img => img is not null) %} +{% set section1_images = page.media.images %}
Concept: tekst + 4 foto's (zoals hoofd-Galerie) diff --git a/themes/natascha/templates/gallery-3.html.twig b/themes/natascha/templates/gallery-3.html.twig index f8bfe45..2265b33 100644 --- a/themes/natascha/templates/gallery-3.html.twig +++ b/themes/natascha/templates/gallery-3.html.twig @@ -9,7 +9,7 @@ {% import 'galerie.html.twig' as gallery %} {% block content %} -{% set section1_images = (page.header.section1_images ?? [])|map(item => page.media[item.image] ?? null)|filter(img => img is not null) %} +{% set section1_images = page.media.images %}
Concept: 4 foto's + tekst (zoals hoofd-Galerie)