Fields plugin also provides fields:install command to copy the default templates into your project, app/views/_fields and app/views/templates,
then you can override the rendering based on the class and property name or the property type.
.
├── app
│ └── views
│ ├── _fields
│ │ ├── boolean
│ │ │ ├── _displayWrapper.gsp
│ │ │ └── _widget.gsp
│ │ ├── date
│ │ │ ├── _displayWidget.gsp
│ │ │ ├── _displayWrapper.gsp
│ │ │ └── _widget.gsp
│ │ ├── default
│ │ │ ├── _displayWrapper.gsp
│ │ │ ├── _widget.gsp
│ │ │ └── _wrapper.gsp
│ │ ├── enum
│ │ │ └── _widget.gsp
│ │ ├── number
│ │ │ └── _widget.gsp
│ │ ├── oneToMany
│ │ │ ├── _displayWidget.gsp
│ │ │ ├── _displayWrapper.gsp
│ │ │ └── _widget.gsp
│ │ ├── oneToOne
│ │ │ └── _widget.gsp
│ │ └── string
│ │ └── _widget.gsp
│ ├── layouts
│ │ └── main.gsp
│ ├── templates
│ │ └── _fields
│ │ ├── _list.gsp
│ │ └── _table.gsp
│ ├── error.gsp
│ ├── index.gsp
│ └── notFound.gsp
Fields plugin also provides
fields:installcommand to copy the default templates into your project,app/views/_fieldsandapp/views/templates,then you can override the rendering based on the class and property name or the property type.