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

dorsetdigital

I've always just used updateCMSFields() in the extension, along with addFieldsToTab()

alt

question, is there a tidy way of moving fields added by a data extension to a new tab in modeladmin (ie without manually moving each one)?

andante

> WSL2 is a full linux vm with smart links oh wow, nice

andante

especially if you want to get kubernetesy at any point