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

            Hide
            Bertrand Dunogier added a comment -

            After discussion with [~bard.farstad@ez.no], the story has been transformed into an epic.

            It is fairly easy to break it down into small implementation stories (couple days each).

            Show
            Bertrand Dunogier added a comment - After discussion with [~bard.farstad@ez.no] , the story has been transformed into an epic. It is fairly easy to break it down into small implementation stories (couple days each).
            Hide
            Bertrand Dunogier added a comment -

            Disabled User has published his own FieldType generator: https://github.com/Smile-SA/EzFieldTypeGeneratorBundle.

            Not sure how it compares to mine in terms of features. Maybe it'd be interesting to share efforts on a common code-base ?

            Show
            Bertrand Dunogier added a comment - Disabled User has published his own FieldType generator: https://github.com/Smile-SA/EzFieldTypeGeneratorBundle . Not sure how it compares to mine in terms of features. Maybe it'd be interesting to share efforts on a common code-base ?
            Hide
            Bertrand Dunogier added a comment -

            Adding a link to my own fieldtype generator, quickly drafted at a conference: https://github.com/bdunogier/ez-fieldtype-generator-bundle.

            Show
            Bertrand Dunogier added a comment - Adding a link to my own fieldtype generator, quickly drafted at a conference: https://github.com/bdunogier/ez-fieldtype-generator-bundle .
            Hide
            Bertrand Dunogier added a comment -

            Hit the "vote" button on the right then Gaetano

            Show
            Bertrand Dunogier added a comment - Hit the "vote" button on the right then Gaetano
            Hide
            Gaetano Giunta (Inactive) added a comment -

            want

            Show
            Gaetano Giunta (Inactive) added a comment - want
            Hide
            Matthieu Sévère added a comment -

            +100

            Show
            Matthieu Sévère added a comment - +100
            Hide
            Jérôme Vieilledent (Inactive) added a comment -

            +10 !

            Show
            Jérôme Vieilledent (Inactive) added a comment - +10 !

              People

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

                Dates

                • Created:
                  Updated: