phyzical
  1. use SilverStripe\Core\ClassInfo;
  2. use SilverStripe\ORM\DataObject;
  3. use SilverStripe\Control\Controller;
  4. use SilverStripe\Core\Extension;
  5.  
  6. //super long classnames...
  7. class CUSTOMETHING_ItemRequest extends Extension
  8. {
  9.  
  10. private static $allowed_actions = array (
  11. 'customACTION',
  12. );
  13.  
  14. public function customACTION($form)
  15. {
  16. //do stuff
  17. }
  18.  
  19.  
  20. }
phyzical

GridFieldDetailForm_ItemRequest is the base item

phyzical

so it looks like i have pulled this off before

phyzical

i thought it did... though to be honest its been a while.

wmk

there is, yes. But does SS4.4 also have the ability for custom actions? There is much of betterbuttons included in SS core nowadays

phyzical

(i think theres native duplicate functionailty)

phyzical

just make an endpoint and use the native duplicate logic

wmk

a button in the detail form would also be fine, like good ol' betterbuttons' "save as new"