Skip to content

Instantly share code, notes, and snippets.

@aertmann
Last active August 29, 2015 14:24
Show Gist options
  • Save aertmann/38378f2a21b62f7af213 to your computer and use it in GitHub Desktop.
Save aertmann/38378f2a21b62f7af213 to your computer and use it in GitHub Desktop.
Content slide for content collection in Neos
prototype(footer) < prototype(ContentCollection) {
nodePath = 'footer'
closestPageWithContent = ${q(node).add(q(node).parents().get()).has(this.nodePath + '[_numberOfChildNodes != 0]').get(0)}
@override.contentCollectionNode = ${Neos.Node.nearestContentCollection(this.closestPageWithContent ? this.closestPageWithContent : node, this.nodePath)}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment