Details
-
Story
-
Resolution: Fixed
-
High
-
None
-
Pollux Platform S12
Description
EZP-24304 introduces a way to include templates in order to display form parts for fieldDefinition specific to each fieldType (see original PR for more details).
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.