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: ''