We need a way to allow specifying grouped fields. With #12 this would allow duplication of groups of fields together. Approaches are welcome.
One suggestion is to add a new layer between Voce_Meta_Group and Voce_Meta_Field to act as a wrapper for multiple fields, a Voce_Meta_Subgroup (better names are welcome), to which fields could be added. This would ensure that grouped fields are declared/rendered together.
If present, the subgroup could utilize its own custom $display_callback (customized to account for its child fields) for rendering all of its child fields together, rather than calling the fields' own render functions, allowing for an easier job of more complex custom styling of fields.
We need a way to allow specifying grouped fields. With #12 this would allow duplication of groups of fields together. Approaches are welcome.
One suggestion is to add a new layer between
Voce_Meta_Group
andVoce_Meta_Field
to act as a wrapper for multiple fields, aVoce_Meta_Subgroup
(better names are welcome), to which fields could be added. This would ensure that grouped fields are declared/rendered together.If present, the subgroup could utilize its own custom
$display_callback
(customized to account for its child fields) for rendering all of its child fields together, rather than calling the fields' own render functions, allowing for an easier job of more complex custom styling of fields.