5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1709 Views |
-
Hide Fields in ModelAdmin generated forms

18 April 2009 at 4:28am
Hi there,
I have extend a new class with the 'ModelAdmin'.
Is there a way to hide or pre define fields in the generated form?Thanks so far...
-
Re: Hide Fields in ModelAdmin generated forms

11 July 2009 at 7:22pm
Hi,
Just came across this post while looking for something else. If you haven't solve this problem yet here is how I do it.
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->removeByName('Events'); //Removes the Events from the form.return $fields;
}Cheers
Robin
| 1709 Views | ||
|
Page:
1
|
Go to Top |


