Originally Posted by
synergie
hello,
just to know if we can custome the save buttons at the end of the form?
I don't want to display "save" but only save and close.
thanks
the buttons are hardcoded into the php code. However you can hide the save button with css.
just put an onload_callback in your dca file with the following code in order to load a custom css only if user is in the "edit" window:
Code:
/* this must be inside a class that extends Backend */
public function hideSaveButton {
$act = $this->Input->get('act');
if ($act == 'edit') {
$GLOBALS['TL_CSS'][] = 'system/modules/path/to/your/css/file.css';
}
}
the css should be something like this:
Code:
input#save {
display: none;
}
Bookmarks