5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 504 Views |
-
ModelAdmin remove back button?

15 February 2011 at 6:14am Last edited: 15 February 2011 7:18am
Hi,
Has anyone got a quick snippet that will remove the 'back' button within ModelAdmin?
It would be very much appreciated -
Re: ModelAdmin remove back button?

17 February 2011 at 3:24am Last edited: 17 February 2011 7:50am
thanks to a little help from simon_w on IRC...
class MyModelAdmin extends ModelAdmin {
...
public static $record_controller_class = "MyModelAdmins_RecordController";
...
}class MyModelAdmin_RecordController extends ModelAdmin_RecordController {
...
public function EditForm() {
$form = parent::EditForm();
$fields = $form->Actions();
$fields->removeByName('action_goBack');
$form->setActions ($fields);
return $form;
}
...
}
| 504 Views | ||
|
Page:
1
|
Go to Top |

