diff --git a/Neos.NodeTypes.AssetList/Resources/Private/Fusion/Root.fusion b/Neos.NodeTypes.AssetList/Resources/Private/Fusion/Root.fusion index 5a98fad15b6..8425c9cf7e3 100644 --- a/Neos.NodeTypes.AssetList/Resources/Private/Fusion/Root.fusion +++ b/Neos.NodeTypes.AssetList/Resources/Private/Fusion/Root.fusion @@ -1,4 +1,29 @@ -prototype(Neos.NodeTypes.AssetList:AssetList) < prototype(Neos.Neos:Content) { - templatePath = "resource://Neos.NodeTypes.AssetList/Private/Templates/NodeTypes/AssetList.html" +prototype(Neos.NodeTypes.AssetList:AssetList) < prototype(Neos.Neos:ContentComponent) { assets = ${q(node).property('assets')} + + attributes = Neos.Fusion:DataStructure + attributes.class = '' + # The following is used to automatically append a class attribute that reflects the underlying node type of a Fusion object, + # for example "neos-nodetypes-form", "neos-nodetypes-headline", "neos-nodetypes-html", "neos-nodetypes-image", "neos-nodetypes-menu" and "neos-nodetypes-text" + # You can disable the following line with: + # prototype(Neos.NodeTypes.AssetList:AssetList) { + # attributes.class.@process.nodeType > + # } + # in your site's Fusion if you don't need that behavior. + attributes.class.@process.nodeType = ${Array.push(value, String.toLowerCase(String.pregReplace(node.nodeTypeName.value, '/[[:^alnum:]]/', '-')))} + + @if.render = ${this.assets || renderingMode.isEdit} + + renderer = afx` +