diff --git a/Resources/Private/Fusion/Prototypes/Image.fusion b/Resources/Private/Fusion/Prototypes/Image.fusion index ddd76f7..76f5a48 100644 --- a/Resources/Private/Fusion/Prototypes/Image.fusion +++ b/Resources/Private/Fusion/Prototypes/Image.fusion @@ -96,6 +96,16 @@ prototype(Sitegeist.Kaleidoscope:Image) < prototype(Neos.Fusion:Component) { srcset = '320w, 400ww, 600w, 800w, 1000w, 1200w, 1600' sizes = '(max-width: 320px) 280px, (max-width: 480px) 440px, 800px' } + + nonScalabelSource { + imageSource = Sitegeist.Kaleidoscope:UriImageSource { + uri = "https://dummyimage.com/600x400/000/fff" + alt = 'Alternate assigned to source' + title = 'Title assigned to source' + } + srcset = '320w, 400ww, 600w, 800w, 1000w, 1200w, 1600' + sizes = '(max-width: 320px) 280px, (max-width: 480px) 440px, 800px' + } } } @@ -119,6 +129,7 @@ prototype(Sitegeist.Kaleidoscope:Image) < prototype(Neos.Fusion:Component) { renderer = Neos.Fusion:Component { @if.hasImageSource = ${props.imageSource && Type.instance(props.imageSource, '\\Sitegeist\\Kaleidoscope\\Domain\\ImageSourceInterface')} + isScalableSource = ${props.imageSource && Type.instance(props.imageSource, '\\Sitegeist\\Kaleidoscope\\Domain\\ScalableImageSourceInterface')} # apply format, width and height to the imageSource imageSource = ${props.imageSource} @@ -139,8 +150,9 @@ prototype(Sitegeist.Kaleidoscope:Image) < prototype(Neos.Fusion:Component) {