Skip to content

Commit

Permalink
Merge pull request #93 from sitegeist/mficzel-add-noderobis-config
Browse files Browse the repository at this point in the history
Create Settings.Noderobis.yaml to generate image renderers that use Kaleidoscope
  • Loading branch information
mficzel authored Jul 21, 2023
2 parents fe9578a + 6d3455f commit 4fe98f6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Configuration/Settings.Noderobis.yaml
Original file line number Diff line number Diff line change
@@ -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: '<Sitegeist.Kaleidoscope:Image imageSource={props.###NAME###} />'

0 comments on commit 4fe98f6

Please sign in to comment.