Field view and fieldDefinition view already use a template fragment system with blocks. Using such a system would be more consistent compared to a simple include(). It would furthermore be easier for a FieldType developer to have all template blocks at hand in only one template.
To implement this properly, following tasks are needed:
- Refactor template blocks rendering and extract it from Twig content extension
- Refactor semantic configuration in order to only have one entry point for adding fieldType templates
- Implement a dedicated Twig function to render fieldDefinition form blocks (like ez_render_field()
- Use this new Twig function in form theme for fieldDefinition form
Is most likely bigger then next sprint so might not be finalized.
|Refactor content field templates rendering||Closed||