Skip to content

Instantly share code, notes, and snippets.

/NodeTypes.yaml Secret

Created June 8, 2014 19:49
Show Gist options
  • Save anonymous/85fc6994e9e2c5892a11 to your computer and use it in GitHub Desktop.
Save anonymous/85fc6994e9e2c5892a11 to your computer and use it in GitHub Desktop.
Neos: Multi Column Content Element (not functional with 2 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'
content2:
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'
}
contentContainerRight = TYPO3.Neos:ContentCollection
contentContainerRight {
nodePath = 'content2'
}
}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
{namespace neos=TYPO3\Neos\ViewHelpers}
<div class="col1"><ts:render path="contentContainerLeft" /></div>
<div class="col2"><ts:render path="contentContainerRight" /></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment