Skip to content

Instantly share code, notes, and snippets.

/NodeTypes.yaml Secret

Created June 8, 2014 19:46
Show Gist options
  • Save anonymous/c5f33c7923faae26aa1a to your computer and use it in GitHub Desktop.
Save anonymous/c5f33c7923faae26aa1a to your computer and use it in GitHub Desktop.
Neos: Multi Column Content Element (functional with 1 column)
'Daniel.MultiColumn:TwoCol':
superTypes:
- 'TYPO3.Neos:Content'
ui:
label: 'Two-Column (50/50)'
group: structure
icon: 'icon-edit'
inlineEditable: TRUE
childNodes:
content:
type: 'TYPO3.Neos:ContentCollection'
prototype(Daniel.MultiColumn:TwoCol) < prototype(TYPO3.Neos:Content)
prototype(Daniel.MultiColumn:TwoCol) {
templatePath = 'resource://Daniel.MultiColumn/Private/Templates/TypoScriptObjects/twocol.html'
contentContainerLeft = TYPO3.Neos:ContentCollection
contentContainerLeft {
nodePath = 'content'
}
}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
{namespace neos=TYPO3\Neos\ViewHelpers}
<div class="col1"><ts:render path="contentContainerLeft" /></div>
<div class="col2">Lorem ipsum</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment