Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24322

Use template block fragments to render field definition forms

    XMLWordPrintable

    Details

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jerome.vieilledent-obsolete@ez.no Jérôme Vieilledent (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days Time Not Required
                  2d