Skip to content

Commit

Permalink
🐛 Fix child count
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto authored Sep 6, 2018
1 parent 2ee1409 commit c93147d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/ContentElements/Container.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ prototype(Jonnitto.ImagesInARow:Container) < prototype(Neos.Neos:ContentCollecti
container = ${Configuration.setting('Jonnitto.ImagesInARow.container')}
nodePath = ''

childCount = ${q(node).children('media').children().count()}
childCount = ${q(node).children('[instanceof Jonnitto.ImagesInARow:Image]').count()}
dimensionsWidth = ${this.childCount ? this.baseWidth / this.childCount : this.baseWidth}

contentElement = true
Expand Down

0 comments on commit c93147d

Please sign in to comment.