diff --git a/config/project/entryTypes/contact--f2d8b097-d5ba-4224-9736-4dc41bd6580f.yaml b/config/project/entryTypes/contact--f2d8b097-d5ba-4224-9736-4dc41bd6580f.yaml index a561b044..c4fda04b 100644 --- a/config/project/entryTypes/contact--f2d8b097-d5ba-4224-9736-4dc41bd6580f.yaml +++ b/config/project/entryTypes/contact--f2d8b097-d5ba-4224-9736-4dc41bd6580f.yaml @@ -87,67 +87,6 @@ fieldLayouts: name: Contact uid: 7623ccc0-0b4c-402b-b9b9-e7a2a736dde2 userCondition: null - - - elementCondition: null - elements: - - - dateAdded: '2025-04-14T07:57:11+00:00' - elementCondition: null - heading: 'Address & contact information' - type: craft\fieldlayoutelements\Heading - uid: deebe8bb-9e47-4e20-bd51-db7780544027 - userCondition: null - - - dateAdded: '2025-04-14T07:57:11+00:00' - editCondition: null - elementCondition: null - elementEditCondition: null - fieldUid: 6ca94949-c3f4-465d-88c7-3d4736d97ed4 # Address - handle: null - instructions: null - label: null - required: false - tip: null - type: craft\fieldlayoutelements\CustomField - uid: 84b24ede-e5eb-4e23-b005-016b7ae6b8a9 - userCondition: null - warning: null - width: 100 - - - dateAdded: '2025-04-14T07:57:11+00:00' - editCondition: null - elementCondition: null - elementEditCondition: null - fieldUid: 072209d1-1c68-4ee5-9a66-a209b518da6d # Mail - handle: null - instructions: null - label: null - required: false - tip: null - type: craft\fieldlayoutelements\CustomField - uid: d99460c5-6a52-491f-8cdf-ab08063d28cd - userCondition: null - warning: null - width: 50 - - - dateAdded: '2025-04-14T07:57:11+00:00' - editCondition: null - elementCondition: null - elementEditCondition: null - fieldUid: e48813cd-24dc-4b06-a97d-2a95520dcc24 # Phone - handle: null - instructions: null - label: null - required: false - tip: null - type: craft\fieldlayoutelements\CustomField - uid: 642d630a-c990-47fc-b308-11d6531d36eb - userCondition: null - warning: null - width: 50 - name: 'General info' - uid: 7c7c7a15-293f-4c7f-9b41-c68ae7e3af8f - userCondition: null - elementCondition: null elements: diff --git a/config/project/entryTypes/siteSettings--75c71ec6-7c59-460d-bac3-80ae2ee887a5.yaml b/config/project/entryTypes/siteSettings--75c71ec6-7c59-460d-bac3-80ae2ee887a5.yaml index db4d4ce5..da045815 100644 --- a/config/project/entryTypes/siteSettings--75c71ec6-7c59-460d-bac3-80ae2ee887a5.yaml +++ b/config/project/entryTypes/siteSettings--75c71ec6-7c59-460d-bac3-80ae2ee887a5.yaml @@ -1,3 +1,4 @@ +allowLineBreaksInTitles: false color: null description: null fieldLayouts: @@ -11,6 +12,7 @@ fieldLayouts: dateAdded: '2024-10-14T06:42:47+00:00' editCondition: null elementCondition: null + elementEditCondition: null fieldUid: a44287f8-d6ed-4f2c-8a63-0c1312ef236e # Image handle: null instructions: 'This image will be shown as a fallback when an entry does not have an overview image.' @@ -23,24 +25,65 @@ fieldLayouts: warning: null width: 100 - - dateAdded: '2025-09-04T09:11:43+00:00' + dateAdded: '2026-05-13T13:41:30+00:00' + elementCondition: null + heading: 'Address & contact information' + type: craft\fieldlayoutelements\Heading + uid: 0482beb6-7e44-43f1-9d68-c0c8845f540b + userCondition: null + - + dateAdded: '2026-05-13T13:41:30+00:00' editCondition: null elementCondition: null - fieldUid: 89216313-bb33-400f-9810-befb0a7a259d + elementEditCondition: null + fieldUid: 6ca94949-c3f4-465d-88c7-3d4736d97ed4 # Address handle: null instructions: null label: null required: false tip: null type: craft\fieldlayoutelements\CustomField - uid: 2f970272-303a-4b55-83c6-e65c9a71b0e9 + uid: dd694475-507c-48b3-9788-832780b322a8 userCondition: null warning: null width: 100 + - + dateAdded: '2026-05-13T13:41:30+00:00' + editCondition: null + elementCondition: null + elementEditCondition: null + fieldUid: 072209d1-1c68-4ee5-9a66-a209b518da6d # Mail + handle: null + instructions: null + label: null + required: false + tip: null + type: craft\fieldlayoutelements\CustomField + uid: cdd18c8c-3363-4ecb-bbb7-d99128e1e777 + userCondition: null + warning: null + width: 50 + - + dateAdded: '2026-05-13T13:41:30+00:00' + editCondition: null + elementCondition: null + elementEditCondition: null + fieldUid: e48813cd-24dc-4b06-a97d-2a95520dcc24 # Phone + handle: null + instructions: null + label: null + required: false + tip: null + type: craft\fieldlayoutelements\CustomField + uid: 03d3fb55-fec5-46b6-b1c8-a4499a13641b + userCondition: null + warning: null + width: 50 - dateAdded: '2025-09-04T09:20:31+00:00' editCondition: null elementCondition: null + elementEditCondition: null fieldUid: 38d9a1df-dc50-4155-9a92-adb2be0b5f34 # Social Links handle: null instructions: null @@ -62,6 +105,7 @@ fieldLayouts: dateAdded: '2024-10-14T06:42:47+00:00' editCondition: null elementCondition: null + elementEditCondition: null fieldUid: c372dc4c-2ba0-4569-89d6-b9e5d3641621 # GTM-Head handle: null instructions: null @@ -77,6 +121,7 @@ fieldLayouts: dateAdded: '2024-10-14T06:42:47+00:00' editCondition: null elementCondition: null + elementEditCondition: null fieldUid: 1722d8e6-c1d8-4e9c-824e-c97bb31fc8e6 # GTM-Body handle: null instructions: null @@ -99,6 +144,7 @@ fieldLayouts: value: true elementType: craft\elements\User fieldContext: global + thumbFieldKey: null handle: siteSettings hasTitleField: false icon: gear @@ -110,3 +156,4 @@ slugTranslationMethod: site titleFormat: '{section.name|raw}' titleTranslationKeyFormat: null titleTranslationMethod: site +uiLabelFormat: '{title}' diff --git a/config/project/project.yaml b/config/project/project.yaml index b77a371b..92c21821 100644 --- a/config/project/project.yaml +++ b/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1778678451 +dateModified: 1778679717 elementSources: craft\elements\Entry: - @@ -7,6 +7,7 @@ elementSources: - desc disabled: false key: '*' + page: Entries tableAttributes: - slug - revisionCreator @@ -15,10 +16,13 @@ elementSources: type: native - heading: General + key: 'heading:ab62a316-8021-443d-9118-85d6888701dc' + page: Entries type: heading - disabled: false key: 'single:5611e98d-93ec-4bd4-95dd-18f282b8c5e8' # Home + page: Entries tableAttributes: - slug - revisionCreator @@ -31,6 +35,7 @@ elementSources: - asc disabled: false key: 'section:45b7c78f-587d-441b-bbd1-605ca629d0bd' # Pages + page: Entries tableAttributes: - slug - revisionCreator @@ -40,21 +45,22 @@ elementSources: - disabled: false key: 'single:5d236e94-b6a8-472c-9296-a5c992cdd49a' # Contact + page: Entries tableAttributes: - slug - revisionCreator - dateUpdated - link type: native - - - key: 'single:6f79e12f-9d80-4f17-ae51-5160127975ec' # Site Settings - type: native - heading: News + key: 'heading:f6b8144a-e0d0-4d1c-8701-a12f90dfcb64' + page: Entries type: heading - disabled: false key: 'single:4c32edae-2824-4f0f-b38b-2477d2500dfe' # News Overview + page: Entries tableAttributes: - slug - revisionCreator @@ -67,6 +73,7 @@ elementSources: - desc disabled: false key: 'section:c576870d-abd8-46aa-8fe5-cdd12c40dfa8' # News items + page: Entries tableAttributes: - slug - revisionCreator @@ -74,14 +81,28 @@ elementSources: - link type: native - + defaultSort: + - structure + - asc + defaultViewMode: '' + disabled: false key: 'section:01faae48-e031-4496-af0c-89de7f12eccd' # News categories + page: Entries + tableAttributes: + - dateCreated + - dateUpdated + - revisionCreator + - link type: native - heading: Account + key: 'heading:06ce10be-4321-4ad1-9d79-41753722d2a0' + page: Entries type: heading - disabled: false key: 'single:361daec5-5ea3-4d9f-957f-f39c78bb595e' # Profile + page: Entries tableAttributes: - slug - revisionCreator @@ -91,6 +112,7 @@ elementSources: - disabled: false key: 'single:c25b1e19-dca6-4ab5-a776-a043f6ee4c82' # Login + page: Entries tableAttributes: - slug - revisionCreator @@ -100,6 +122,7 @@ elementSources: - disabled: false key: 'single:684ece64-c23a-4abf-9574-f2c053d496e8' # Register + page: Entries tableAttributes: - slug - revisionCreator @@ -109,6 +132,7 @@ elementSources: - disabled: false key: 'single:dca2ac05-7833-41de-b7b4-a737c090575c' # Confirm your account + page: Entries tableAttributes: - slug - revisionCreator @@ -118,6 +142,7 @@ elementSources: - disabled: false key: 'single:d5601a1f-a33e-4c5a-b7af-1f29347149ca' # Registration completed + page: Entries tableAttributes: - slug - revisionCreator @@ -127,6 +152,7 @@ elementSources: - disabled: false key: 'single:1c4e3f0f-ca9b-474d-a460-48f45133c763' # Forgot password + page: Entries tableAttributes: - slug - revisionCreator @@ -136,6 +162,7 @@ elementSources: - disabled: false key: 'single:53c1af4c-0fbd-4811-a028-67fed65195b9' # Forgot Password Confirmation + page: Entries tableAttributes: - slug - revisionCreator @@ -145,6 +172,7 @@ elementSources: - disabled: false key: 'single:8e583282-1fec-4444-822f-37b2d5961f28' # Set Password + page: Entries tableAttributes: - slug - revisionCreator @@ -154,6 +182,7 @@ elementSources: - disabled: false key: 'single:4703bf34-5e13-4da1-aff6-d04c0bba024b' # Set Password Confirmation + page: Entries tableAttributes: - slug - revisionCreator @@ -163,6 +192,7 @@ elementSources: - disabled: false key: 'single:05aba0e3-e1de-4bf3-8a07-5c9f3ef9475c' # Edit profile + page: Entries tableAttributes: - slug - revisionCreator @@ -172,6 +202,7 @@ elementSources: - disabled: false key: 'single:af69e9a2-96df-4fa9-8cc3-2728ec4fc632' # Edit password + page: Entries tableAttributes: - slug - revisionCreator @@ -180,10 +211,13 @@ elementSources: type: native - heading: Other + key: 'heading:db25e4db-0020-45b9-b0a6-9366fa9fb917' + page: Entries type: heading - disabled: false key: 'single:36895330-a28e-477f-9327-bdbe66dabf99' # Cookie policy + page: Entries tableAttributes: - slug - revisionCreator @@ -193,6 +227,7 @@ elementSources: - disabled: false key: 'single:c2198cbb-f6e1-478a-ab4a-bbbaea43ce0e' # Privacy policy + page: Entries tableAttributes: - slug - revisionCreator @@ -201,10 +236,12 @@ elementSources: type: native - key: 'single:99a435d2-9c12-4ef6-8b3b-2a9915d4216b' # Accessibility Statement + page: Entries type: native - disabled: false key: 'single:4750849d-9328-4d3e-956d-9d317da5e6eb' # Page not found + page: Entries tableAttributes: - slug - revisionCreator @@ -214,6 +251,7 @@ elementSources: - disabled: false key: 'single:e3bed4e1-82ae-45e8-908c-0a6669141b31' # Search results + page: Entries tableAttributes: - slug - revisionCreator @@ -223,12 +261,31 @@ elementSources: - disabled: false key: 'single:fa6e0764-a31c-4304-a4d7-76bd3a679e3e' # 503 + page: Entries tableAttributes: - slug - revisionCreator - dateUpdated - link type: native + - + defaultSort: + - id + - asc + defaultViewMode: '' + disabled: false + key: 'single:6f79e12f-9d80-4f17-ae51-5160127975ec' # Site Settings + page: 'Site settings' + tableAttributes: + - dateCreated + - dateUpdated + - revisionCreator + - link + type: native +elementSourcesPages: + craft\elements\Entry: + 'Site settings': + icon: newspaper email: fromEmail: $SYSTEM_EMAIL fromName: $SYSTEM_NAME diff --git a/templates/_site/_contact.twig b/templates/_site/_contact.twig index 65fa9fb1..47d577cb 100644 --- a/templates/_site/_contact.twig +++ b/templates/_site/_contact.twig @@ -47,28 +47,28 @@

{{ systemName }}

- {% if generalInfo.address|length %} + {% if siteSettings.address|length %}
- {{ generalInfo.address|nl2br }} + {{ siteSettings.address|nl2br }}
{% endif %} - {% if generalInfo.mail|length or generalInfo.phone|length %} + {% if siteSettings.mail|length or siteSettings.phone|length %}
- {% if generalInfo.mail|length %} + {% if siteSettings.mail|length %}
{{ icon('envelope') }} - {{generalInfo.mail}} + {{siteSettings.mail}}
{% endif %} - {% if generalInfo.phone|length %} + {% if siteSettings.phone|length %}
{{ icon('phone') }} - {{generalInfo.phone}} + {{siteSettings.phone}}
{% endif %}
{% endif %} - {% set socialLinks = fallback.socialLinks %} + {% set socialLinks = siteSettings.socialLinks %} {% if socialLinks|length and (socialLinks.facebook or socialLinks.instagram or socialLinks.linkedin or socialLinks.twitter or socialLinks.youtube) %}
{{ 'Volg ons: '|t }}
@@ -85,4 +85,4 @@
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/templates/_site/_layout.twig b/templates/_site/_layout.twig index ead67bb0..9cb1864a 100644 --- a/templates/_site/_layout.twig +++ b/templates/_site/_layout.twig @@ -1,14 +1,9 @@ {% set baseUrl = craft.app.config.general.aliases.baseUrl %} {% set currentLocale = craft.app.language|split('-') %} -{% set generalInfo = craft.app.cache.get('layout-general-info-' ~ currentSite.id) %} -{% if not generalInfo %} - {% set generalInfo = craft.entries.section('contact').status(null).one() %} - {% do craft.app.cache.set('layout-general-info-' ~ currentSite.id, generalInfo, 3600) %} -{% endif %} -{% set fallback = craft.app.cache.get('layout-fallback-' ~ currentSite.id) %} -{% if not fallback %} - {% set fallback = craft.entries.section('siteSettings').status(null).one() %} - {% do craft.app.cache.set('layout-fallback-' ~ currentSite.id, fallback, 3600) %} +{% set siteSettings = craft.app.cache.get('layout-siteSettings-' ~ currentSite.id) %} +{% if not siteSettings %} + {% set siteSettings = craft.entries.section('siteSettings').status(null).one() %} + {% do craft.app.cache.set('layout-siteSettings-' ~ currentSite.id, siteSettings, 3600) %} {% endif %} @@ -30,7 +25,7 @@ {# #} {% if not craft.app.request.isPreview() %} - {{ fallback.gtmHead|raw }} + {{ siteSettings.gtmHead|raw }} {% endif %} {% endblock %} @@ -42,7 +37,7 @@ {% if not craft.app.request.isPreview() %} - {{ fallback.gtmBody|raw }} + {{ siteSettings.gtmBody|raw }} {% endif %} {% if systemOffline is not defined %} @@ -93,4 +88,4 @@ {% endblock %} - + \ No newline at end of file diff --git a/templates/_site/_snippet/_content/_blocks/_callToAction.twig b/templates/_site/_snippet/_content/_blocks/_callToAction.twig index 165bf35d..84841c21 100644 --- a/templates/_site/_snippet/_content/_blocks/_callToAction.twig +++ b/templates/_site/_snippet/_content/_blocks/_callToAction.twig @@ -4,7 +4,7 @@
{% if block.image and block.image.collect()|length %} - {% set image = block.image.collect().first() ? block.image.collect().first() : fallback.image.one() %} + {% set image = block.image.collect().first() ? block.image.collect().first() : siteSettings.image.one() %}
{{render_image(image, { sizes: "(max-width: 479px) 95vw, (min-width: 480px) and (max-width: 659px) 448px, (min-width: 660px) and (max-width: 819px) 628px, (min-width: 820px) and (max-width: 979px) 378px, (min-width: 980px) and (max-width: 1199px) 458px, (min-width: 1200px) 568px", @@ -39,4 +39,4 @@ {{ render_hyper_links(block.cta) | raw }}
{% endif %} -{% endapply %} +{% endapply %} \ No newline at end of file diff --git a/templates/_site/_snippet/_global/_footer.twig b/templates/_site/_snippet/_global/_footer.twig index cc3c29cd..f216c35e 100644 --- a/templates/_site/_snippet/_global/_footer.twig +++ b/templates/_site/_snippet/_global/_footer.twig @@ -7,29 +7,29 @@

{{ systemName }}

- {% if generalInfo.address|length %} + {% if siteSettings.address|length %}
- {{ generalInfo.address|nl2br }} + {{ siteSettings.address|nl2br }}
{% endif %} - {% if generalInfo.mail|length or generalInfo.phone|length %} + {% if siteSettings.mail|length or siteSettings.phone|length %}
- {% if generalInfo.mail|length %} + {% if siteSettings.mail|length %}
{{ icon('envelope') }} - {{generalInfo.mail}} + {{siteSettings.mail}}
{% endif %} - {% if generalInfo.phone|length %} + {% if siteSettings.phone|length %}
{{ icon('phone') }} - {{generalInfo.phone}} + {{siteSettings.phone}}
{% endif %}
{% endif %} - {% set socialLinks = fallback.socialLinks %} + {% set socialLinks = siteSettings.socialLinks %} {% if socialLinks|length and (socialLinks.facebook or socialLinks.instagram or socialLinks.linkedin or socialLinks.twitter or socialLinks.youtube) %}
{{ 'Volg ons: '|t }}
diff --git a/templates/_site/_snippet/_item/_card.twig b/templates/_site/_snippet/_item/_card.twig index 486334e9..622d5d92 100644 --- a/templates/_site/_snippet/_item/_card.twig +++ b/templates/_site/_snippet/_item/_card.twig @@ -6,7 +6,7 @@
{% if showImage %} - {% set overviewImage = cardEntry.overviewImage|length ? cardEntry.overviewImage.eagerly().one() : cardEntry.headerImage and cardEntry.headerImage|length ? cardEntry.headerImage.eagerly().one() : fallback.image.one() %} + {% set overviewImage = cardEntry.overviewImage|length ? cardEntry.overviewImage.eagerly().one() : cardEntry.headerImage and cardEntry.headerImage|length ? cardEntry.headerImage.eagerly().one() : siteSettings.image.one() %} {% if overviewImage|length %} {{render_image(overviewImage, { sizes: "(max-width: 479px) 95vw, (min-width: 480px) and (max-width: 819px) 298px, (min-width: 820px) and (max-width: 1199px) 295px, (min-width: 1200px) 368px", @@ -30,4 +30,4 @@
-
+
\ No newline at end of file