[Neos] Extend ContentCollection

Aske Ertmann aske at moc.net
Mon Sep 15 21:41:49 CEST 2014


Hi Steffan

Unfortunately this is not support yet.

Initial work has been done to make it possible, but it’s touches a lot of areas that needs to be adjusted and thus have not been finished yet.

These two changes are both trying to solve it.

https://review.typo3.org/#/c/25895/
https://review.typo3.org/#/c/31244/

Best regards,
Aske

On 15 Sep 2014, at 17:14, Steffan Halvorsen <steffan at derhub.de> wrote:

> 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?
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos



More information about the Neos mailing list