Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: How to get Model Admin without Table , just to edit one Object !

$
0
0

I've wondered how to do this before as well. I haven't had a chance to look at it properly, but from looking at the existing classes I'd guess:

CMSSettingsController extends LeftAndMain, not ModelAdmin, so when creating your class, try extending LeftAndMain and not ModelAdmin.

Then I think you'll need to overwrite getEditForm() to load in your DataObject - Use CMSSettingsController as an example.

It looks like there'll be extra stuff to work out, like getting the CMS actions to pass into the form, but it's a starting point.

Good luck!


Posted to: How to get Model Admin without Table , just to edit one Object ! | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles