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
Printable View
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.Quote:
Originally Posted by synergie
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:
the css should be something like this: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';
}
}
Code:
input#save {
display: none;
}
thanks that's perfectly what I need!
I will consider a donation!