Simplify gallery-2/3 to a single text field instead of two split sections

This commit is contained in:
GitSync
2026-08-30 15:20:35 +02:00
parent 3fac28ea0a
commit cc69592b5d
6 changed files with 34 additions and 74 deletions
+6 -29
View File
@@ -18,38 +18,15 @@ form:
label: Introductietekst
help: 'Korte openingszin, boven de eerste kop.'
header.section1_heading:
type: text
label: 'Kop sectie 1 (boven)'
default: 'Op dit moment te zien'
header.section1_text:
header.text:
type: textarea
label: 'Tekst sectie 1 (boven)'
rows: 6
label: Tekst
rows: 12
header.section1_images:
type: list
label: "Foto's sectie 1 (boven)"
help: "Sleep om te herschikken. Deze foto's verschijnen naast de tekst hierboven."
style: vertical
collapsed: false
fields:
.image:
type: pagemediaselect
label: Foto
preview_images: true
header.section2_heading:
type: text
label: 'Kop sectie 2 (onder)'
default: 'Bezoeken & aankoop'
header.section2_text:
type: textarea
label: 'Tekst sectie 2 (onder)'
rows: 6
header.section2_images:
type: list
label: "Foto's sectie 2 (onder)"
help: "Sleep om te herschikken. Deze foto's verschijnen naast de tekst hierboven."
label: "Foto's"
help: "Sleep om te herschikken."
style: vertical
collapsed: false
fields:
+6 -29
View File
@@ -18,38 +18,15 @@ form:
label: Introductietekst
help: 'Korte openingszin, boven de eerste kop.'
header.section1_heading:
type: text
label: 'Kop sectie 1 (boven)'
default: 'Op dit moment te zien'
header.section1_text:
header.text:
type: textarea
label: 'Tekst sectie 1 (boven)'
rows: 6
label: Tekst
rows: 12
header.section1_images:
type: list
label: "Foto's sectie 1 (boven)"
help: "Sleep om te herschikken. Deze foto's verschijnen naast de tekst hierboven."
style: vertical
collapsed: false
fields:
.image:
type: pagemediaselect
label: Foto
preview_images: true
header.section2_heading:
type: text
label: 'Kop sectie 2 (onder)'
default: 'Bezoeken & aankoop'
header.section2_text:
type: textarea
label: 'Tekst sectie 2 (onder)'
rows: 6
header.section2_images:
type: list
label: "Foto's sectie 2 (onder)"
help: "Sleep om te herschikken. Deze foto's verschijnen naast de tekst hierboven."
label: "Foto's"
help: "Sleep om te herschikken."
style: vertical
collapsed: false
fields:
@@ -22,10 +22,7 @@
<div class="col-12 col-md-6 p-3 text-start content-text order-2 order-md-1">
<h1 class="funky-font main-header text-center">{{ page.title }}</h1>
{% if page.header.intro %}{{ page.header.intro|markdown }}{% endif %}
{% if page.header.section1_heading %}<h2 class="funky-font">{{ page.header.section1_heading }}</h2>{% endif %}
{{ page.header.section1_text|markdown }}
{% if page.header.section2_heading %}<h2 class="funky-font">{{ page.header.section2_heading }}</h2>{% endif %}
{{ page.header.section2_text|markdown }}
{{ page.header.text|markdown }}
<div class="d-flex flex-column flex-sm-row gap-2 mt-3">
<a href="{{ url('/werk-in-detail') }}" class="btn btn-brand">Bekijk werk in detail</a>
<a href="{{ url('/contact') }}" class="btn btn-outline-brand">Plan een bezoek</a>
@@ -19,10 +19,7 @@
<div class="col-12 col-md-6 p-3 text-start content-text order-2">
<h1 class="funky-font main-header text-center">{{ page.title }}</h1>
{% if page.header.intro %}{{ page.header.intro|markdown }}{% endif %}
{% if page.header.section1_heading %}<h2 class="funky-font">{{ page.header.section1_heading }}</h2>{% endif %}
{{ page.header.section1_text|markdown }}
{% if page.header.section2_heading %}<h2 class="funky-font">{{ page.header.section2_heading }}</h2>{% endif %}
{{ page.header.section2_text|markdown }}
{{ page.header.text|markdown }}
<div class="d-flex flex-column flex-sm-row gap-2 mt-3">
<a href="{{ url('/werk-in-detail') }}" class="btn btn-brand">Bekijk werk in detail</a>
<a href="{{ url('/contact') }}" class="btn btn-outline-brand">Plan een bezoek</a>