From 6d3455f0e8ed8eb06560be644abdf67c4ef74848 Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Fri, 21 Jul 2023 11:03:06 +0200 Subject: [PATCH] Create Settings.Noderobis.yaml to generate image renderers that use Kaleidoscope --- Configuration/Settings.Noderobis.yaml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Configuration/Settings.Noderobis.yaml diff --git a/Configuration/Settings.Noderobis.yaml b/Configuration/Settings.Noderobis.yaml new file mode 100644 index 0000000..1c119c2 --- /dev/null +++ b/Configuration/Settings.Noderobis.yaml @@ -0,0 +1,28 @@ +Sitegeist: + Noderobis: + properties: + + # Adjust generation of Image props to render using Sitegeist.Kaleidoscope + # with fallback to a dummy image in backend + 'Neos\Media\Domain\Model\ImageInterface': + prop: | + ###NAME### = Neos.Fusion:Case { + image { + condition = ${q(node).property('###NAME###')} + renderer = Sitegeist.Kaleidoscope:AssetImageSource { + asset = ${q(node).property('###NAME###')} + # @todo !!! ensure property ###NAME###Title really exists + title = ${q(node).property('###NAME###Title')} + # @todo !!! ensure property ###NAME###Alt really exists + alt = ${q(node).property('###NAME###Alt')} + } + } + dummyImage { + condition = ${node.context.inBackend} + renderer = Sitegeist.Kaleidoscope:DummyImageSource { + alt = "dummy" + title = "image" + } + } + } + afx: ''