Split up NodeTypes.yaml


(Harald Kerst) #1

Hi all,

I havone simple question Is it possible to split up NodeTypes.yaml into serveral files, lets say one for each nodetype and includes these files in NodeTypes.yaml.

Reason:
if more and more custom NodeTypes are added NodeTypes.yaml is very hard to manage.


(Christian Müller) #2

Yes indeed you can. The that even works automatically, just name your split files NodeTypes.*.yaml . You can have a look at the files in TYPO3.Neos.NodeTypes, it also has them split. No need to include, all these files will be loaded. Order doesn’t matter as super types are resolved later.


(Harald Kerst) #3

Hi Christian,

thank you for your quick response - indeed works perfektly.
Harald