Skip to content

Instantly share code, notes, and snippets.

@Sebobo
Sebobo / ContentCollectionComponent.fusion
Created May 8, 2020 07:00
Nested schedule element without additional Content Collections for Neos CMS
# This is a variant of th enormal ContentComponent that already includes
# a prop which loads it's children as ContentCollectionRenderer and has the necessary caching configuration
# to make everything work like with the standard ContentCollection.
#
# You can inherit from this prototype instead of ContentComponent for the Schedule and Day types above
# and remove the `items` prop from them.
prototype(Meetup.Example:ContentCollectionComponent) < prototype(Neos.Neos:ContentComponent) {
items = Neos.Neos:ContentCollectionRenderer
@cache {