-
-
Save anonymous/85fc6994e9e2c5892a11 to your computer and use it in GitHub Desktop.
Neos: Multi Column Content Element (not functional with 2 column)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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