5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 767 Views |
-
Identify show and edit forms

22 March 2010 at 9:40pm Last edited: 22 March 2010 9:42pm
How can I know if the actual form is edit or show ?
function getCMSFields() {
$fields = parent::getCMSFields();// This is working for add form:
if( !$this->ID ) {
// form = add
// https://www.xy.de/admin/Modeladmin/Depositaer/5/EditForm/field/News/add
}// This is NOT working for show form:
if( $this->action == 'show' ) {
// form = show
// https://www.xy.de/admin/Modeladmin/Depositaer/5/EditForm/field/News/item/12/show
}
return $fields;
} -
Re: Identify show and edit forms

26 March 2010 at 10:27pm
Hello,
I'm looking since 4 days for the solution and will be very happy if someone could help me. -
Re: Identify show and edit forms

27 March 2010 at 4:04pm
Are you referring to cms fields in the site tree or in a form such as model admin?
-
Re: Identify show and edit forms

27 March 2010 at 10:02pm
Thanks Willr,
my form is in the model admin!
| 767 Views | ||
|
Page:
1
|
Go to Top |


