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

            Bertrand Dunogier created issue -
            Bertrand Dunogier made changes -
            Field Original Value New Value
            Description Provide a Command line too that generates a Field Type skeleton

            {code|borderStyle=solid}
            php ezpublish/console ezpublish:generate:fieldtype
            {code}

            Options:
            - Field Type name & identifier
            - external data, y/n
            - legacy: requires external tables

            Depending on the answers, skeletons are generated for the base files (Type, Value, Storage, Gateway, Converter) in a custom bundle.

            A slightly modified version could also help kickstart a 5.0 port of a 4.x datatype extension.
            Provide a Command line tool that generates a Field Type skeleton

            {{php ezpublish/console ezpublish:generate:fieldtype}}

            Options:
            - Field Type name & identifier
            - external data, y/n
            - legacy: requires external tables

            Depending on the answers, skeletons are generated for the base files (Type, Value, Storage, Gateway, Converter) in a custom bundle.

            A slightly modified version could also help kickstart a 5.0 port of a 4.x datatype extension.
            Jérôme Vieilledent (Inactive) made changes -
            Labels DeveloperExperience DevEx
            André Rømcke made changes -
            Workflow eZ Engineering Scrumban Workflow [ 49046 ] EZ* Development Workflow [ 68969 ]
            Bertrand Dunogier made changes -
            Link This issue relates to EZP-22947 [ EZP-22947 ]
            Bertrand Dunogier made changes -
            Remote Link This issue links to "bdunogier/ez-fieldtype-generator-bundle (Web Link)" [ 17465 ]
            Bertrand Dunogier made changes -
            Remote Link This issue links to "Smile's FieldType generator (Web Link)" [ 17466 ]
            Bertrand Dunogier made changes -
            Status Open [ 1 ] Confirmed [ 10037 ]
            Bertrand Dunogier made changes -
            Affects Version/s 1.8.0 [ 14682 ]
            Bertrand Dunogier made changes -
            Priority Medium [ 4 ] High [ 3 ]
            Bertrand Dunogier made changes -
            Link This issue relates to EZP-27043 [ EZP-27043 ]
            Bertrand Dunogier made changes -
            Description Provide a Command line tool that generates a Field Type skeleton

            {{php ezpublish/console ezpublish:generate:fieldtype}}

            Options:
            - Field Type name & identifier
            - external data, y/n
            - legacy: requires external tables

            Depending on the answers, skeletons are generated for the base files (Type, Value, Storage, Gateway, Converter) in a custom bundle.

            A slightly modified version could also help kickstart a 5.0 port of a 4.x datatype extension.
            Provide a Command line tool that generates a Field Type skeleton

            {{php ezpublish/console ezpublish:generate:fieldtype}}

            Options:
            - Field Type name & identifier
            - external data, y/n
            - legacy: requires external tables

            h3. 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

            h3. 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.
            Bertrand Dunogier made changes -
            Description Provide a Command line tool that generates a Field Type skeleton

            {{php ezpublish/console ezpublish:generate:fieldtype}}

            Options:
            - Field Type name & identifier
            - external data, y/n
            - legacy: requires external tables

            h3. 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

            h3. 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.
            Provide a Command line tool that generates a Field Type skeleton

            {{php ezpublish/console ez:generate:fieldtype}}

            Options:
            - Field Type name & identifier
            - external data, y/n
            - legacy: requires external tables

            h3. 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

            h3. 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.
            Bertrand Dunogier made changes -
            Description Provide a Command line tool that generates a Field Type skeleton

            {{php ezpublish/console ez:generate:fieldtype}}

            Options:
            - Field Type name & identifier
            - external data, y/n
            - legacy: requires external tables

            h3. 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

            h3. 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.
            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

            h3. 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|https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Bundle/EzPublishCoreBundle/Resources/views/content_fields.html.twig] twig templates + configuration
            - [SearchField|https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/Url/SearchField.php] (need doc & research)
            - If external data, [Storage class|https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/Url/UrlStorage.php] +

            h3. 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.
            Bertrand Dunogier made changes -
            Summary Implement a field type generator FieldType generator
            Bertrand Dunogier made changes -
            Issue Type Story [ 7 ] Epic [ 6 ]
            Workflow EZ* Development Workflow [ 68969 ] EZ* EPIC Workflow2 [ 103012 ]
            Status Confirmed [ 10037 ] Specification [ 10002 ]
            Epic Name FieldType generator
            Epic Status To Do [ 10300 ]
            Bertrand Dunogier made changes -
            Epic Child EZP-27043 [ 58196 ]
            David Christian Liedle (Inactive) made changes -
            Summary FieldType generator FieldType Generator
            David Christian Liedle (Inactive) made changes -
            Epic Name FieldType generator FieldType Generator
            David Christian Liedle (Inactive) made changes -
            Labels DevEx DevEx v2

              People

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

                Dates

                • Created:
                  Updated: