Skip to content

Commit

Permalink
FEATURE: Support passing-content into Sitegeist.Kaleidoscope:Picture
Browse files Browse the repository at this point in the history
This is handy for defining sources via Sitegeist.Kaleidoscope:Source in afx
  • Loading branch information
mficzel committed Oct 29, 2019
1 parent cbf0e6d commit d632a56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/Private/Fusion/Prototypes/Picture.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ prototype(Sitegeist.Kaleidoscope:Picture) < prototype(Neos.Fusion:Component) {
alt = null
title = null
class = null
content = ''

renderer = afx`
<picture @if.has={props.imageSource} class={props.class}>
{props.content}
<Neos.Fusion:Collection collection={props.sources} itemName="source" @children="itemRenderer" @if.has={props.sources}>
<Sitegeist.Kaleidoscope:Source
imageSource={source.imageSource ? source.imageSource : props.imageSource}
Expand Down

0 comments on commit d632a56

Please sign in to comment.