gallery-2/3: use page media ordering instead of explicit image list field
This commit is contained in:
@@ -23,17 +23,6 @@ form:
|
|||||||
label: Tekst
|
label: Tekst
|
||||||
rows: 12
|
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:
|
content:
|
||||||
unset@: true
|
unset@: true
|
||||||
options:
|
options:
|
||||||
|
|||||||
@@ -23,17 +23,6 @@ form:
|
|||||||
label: Tekst
|
label: Tekst
|
||||||
rows: 12
|
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:
|
content:
|
||||||
unset@: true
|
unset@: true
|
||||||
options:
|
options:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
{% import 'galerie.html.twig' as gallery %}
|
{% import 'galerie.html.twig' as gallery %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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 %}
|
||||||
|
|
||||||
<div class="row bg-light-subtle text-center py-1 mb-2">
|
<div class="row bg-light-subtle text-center py-1 mb-2">
|
||||||
<small class="text-muted">Concept: tekst + 4 foto's (zoals hoofd-Galerie)</small>
|
<small class="text-muted">Concept: tekst + 4 foto's (zoals hoofd-Galerie)</small>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
{% import 'galerie.html.twig' as gallery %}
|
{% import 'galerie.html.twig' as gallery %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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 %}
|
||||||
|
|
||||||
<div class="row bg-light-subtle text-center py-1 mb-2">
|
<div class="row bg-light-subtle text-center py-1 mb-2">
|
||||||
<small class="text-muted">Concept: 4 foto's + tekst (zoals hoofd-Galerie)</small>
|
<small class="text-muted">Concept: 4 foto's + tekst (zoals hoofd-Galerie)</small>
|
||||||
|
|||||||
Reference in New Issue
Block a user