Skip to content

Instantly share code, notes, and snippets.

@radmiraal
Created September 27, 2015 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radmiraal/d990322960e4816522d1 to your computer and use it in GitHub Desktop.
Save radmiraal/d990322960e4816522d1 to your computer and use it in GitHub Desktop.
A collection node type for Neos. This allows for creating a content node type that acts like a container for other elements without extra wrapping elements
'My.Vendor:Section':
superTypes:
'TYPO3.Neos:Content': TRUE
'TYPO3.Neos:ContentCollection': TRUE
ui:
label: 'Section'
inlineEditable: TRUE
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<section{attributes -> f:format.raw()}>
<ts:render path="content" />
</section>
prototype(My.Vendor:Section) < prototype(TYPO3.Neos:ContentCollection)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment