Details

    • Type: Epic Epic
    • Status: Specification
    • Priority: High 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.

        Issue Links

          Issues in Epic

            Activity

            No work has yet been logged on this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                Bertrand Dunogier
              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: