bumbus

you could iterate over $db fields in your extension and run a function like this on each field

bumbus
  1. public static function move_fields(
  2. FieldList $fields,
  3. string $fieldName,
  4. string $newTabName = 'Root.Main',
  5. string $insertBefore = null
  6. ): FieldList
  7. {
  8. $field = $fields->dataFieldByName($fieldName);
  9. $fields
  10. ->removeByName($fieldName)
  11. ->addFieldToTab($newTabName, $field, $insertBefore)
  12. ;
  13.  
  14. return $fields;
  15. }
alt

and they get automatically loaded into Root.Main, but it would be nice to have them load into Root.Extended instead

alt

I was preferring to be lazy, because the extension adds ~20 fields