[Neos] Extend ContentCollection

Steffan Halvorsen steffan at derhub.de
Mon Sep 15 17:14:15 CEST 2014


Hi, I try to extend the Node Type 'ContentCollection' as follows:

yaml:

##
# Include Bootstrap Column
#
'DerHub.Bootstrap:Column':
  superTypes: ['TYPO3.Neos:ContentCollection']
  ui:
    label: 'Column'
    group: 'structure'
    icon: 'icon-columns'
    inlineEditable: TRUE
    inspector:
      groups:
        layout:
          label: 'Layout'
          position: 2
        width:
          label: 'Width'
          position: 3
  properties:
    layout:
      type: string
      defaultValue: '12'
      ui:
        label: 'Column'
        reloadIfChanged: TRUE
        inspector:
          group: 'layout'
          editor: Content/Inspector/Editors/SelectBoxEditor
          editorOptions:
            values:
              '12':
                label: '12 / 12'
              '11':
                label: '11 / 12'
              '10':
                label: '10 / 12'
              '9':
                label: '9 / 12'
              '8':
                label: '8 / 12'
              '7':
                label: '7 / 12'
              '6':
                label: '6 / 12'
              '5':
                label: '5 / 12'
              '4':
                label: '4 / 12'
              '3':
                label: '3 / 12'
              '2':
                label: '2 / 12'
              '1':
                label: '1 / 12'

ts2

//Include Bootstrap Column
prototype(DerHub.Bootstrap:Column) < prototype(TYPO3.Neos:ContentCollection)
prototype(DerHub.Bootstrap:Column) {
    templatePath = 'resource://DerHub.Stack/Private/Templates/Bootstrap/Grid/Column.html'
    nodePath = 'content'
}

html

{namespace ts=TYPO3\TypoScript\ViewHelpers}
{namespace neos=TYPO3\Neos\ViewHelpers}

<div class="col-md-{layout}">
    <ts:render path="content"/>
</div>

---

The node type shows up as expected, but I cant add elements to it. It does also freeze the page when I change the layout property and click 'apply'.

Do I do something wrong?


More information about the Neos mailing list