Details
-
Epic
-
Resolution: Unresolved
-
High
-
None
-
5.0, 1.8.0
-
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.