Skip to content

Instantly share code, notes, and snippets.

@iamandrewluca
iamandrewluca / MyModel.php
Last active July 1, 2024 12:24
typo3 extbase categories
<?php
/**
* categories
*
* \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\Category>
* @lazy
*/
protected $categories;
/**
* MyModel constructor.
@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 {