-
-
Save martin-helmich/9249783 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
'TYPO3.NeosDemoTypo3Org:Tabs': | |
superTypes: ['TYPO3.Neos:Content'] | |
childNodes: | |
tabItems: | |
type: 'TYPO3.Neos:ContentCollection' | |
ui: | |
label: 'Tabs' | |
group: 'plugins' | |
icon: 'icon-picture' | |
inlineEditable: TRUE | |
inspector: | |
groups: | |
'options': | |
label: 'Tab Options' | |
properties: | |
fade: | |
type: boolean | |
ui: | |
label: 'Fade' | |
inspector: | |
group: 'options' | |
'TYPO3.NeosDemoTypo3Org:Tab': | |
superTypes: ['TYPO3.Neos:Content'] | |
childNodes: | |
content: | |
type: 'TYPO3.Neos:ContentCollection' | |
ui: | |
label: 'Tab Element' | |
group: 'plugins' | |
icon: 'icon-picture' | |
inlineEditable: TRUE | |
inspector: | |
groups: | |
'options': | |
label: 'Tab Options' | |
properties: | |
tabTitle: | |
type: string | |
ui: | |
label: 'Tab Title' | |
inspector: | |
group: 'options' |
This file contains hidden or 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
<div class="tab-pane" id="{node.identifier}"> | |
{content -> f:format.raw()} | |
</div> |
This file contains hidden or 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
<ul class="nav nav-tabs"> | |
<f:for each="{tabItemNodes}" as="tabItemNode" iteration="tabIteration"> | |
<li{f:if(condition: tabIteration.isFirst, then: ' class="active"')}><a href="#{tabItemNode.identifier}" data-toggle="tab">{tabItemNode.properties.tabTitle}</a></li> | |
</f:for> | |
</ul> | |
<!-- Tab panes --> | |
{tabItems -> f:format.raw()} | |
This file contains hidden or 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(TYPO3.NeosDemoTypo3Org:Tabs) { | |
tabItems = TYPO3.Neos:ContentCollection { | |
nodePath = 'tabItems' | |
attributes.class = 'tab-content neos-contentcollection' | |
} | |
tabItemNodes = ${q(node).children('tabItems').children('[instanceof TYPO3.NeosDemoTypo3Org:Tab]').get()} | |
} | |
prototype(TYPO3.NeosDemoTypo3Org:Tab) { | |
content = TYPO3.Neos:ContentCollection { | |
nodePath = 'content' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment