XMLWordPrintable

    Details

    • Type: Epic
    • Status: Specification
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.0, 1.8.0
    • Fix Version/s: None
    • Component/s: Documentation, Field types
    • Labels:
    • Epic Name:
      FieldType Generator

      Description

      Provide a Command line tool that generates a Field Type skeleton

      php ezpublish/console ez:generate:fieldtype

      Options:

      • Field Type name & identifier

      Bonus options:

      • external data, y/n
      • legacy: requires external tables

      Generated items

      Depending on the answers, the items of a FieldType are generated for the base files in a custom bundle:

      • Value & Type
      • YUI field edit & view files (templates + configuration ?)
      • Repository-forms FieldDefinition and FieldValue form mappers, and fieldsettings template
      • FieldDefinition & FieldValue twig templates + configuration
      • SearchField (need doc & research)
      • If external data, Storage class +

      Generated documentation

      An interesting extra feature would be to generate a markdown file at the root of the bundle, with a walkthrough of the generated files & code, with clickable links to the generated files.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              bertrand.dunogier@ez.no Bertrand Dunogier
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: