Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Dynamic ModelAdmin Instantiation for the Backend


Go to End


1022 Views

Avatar
DesignCollective

Community Member, 66 Posts

16 July 2016 at 9:18am

I'm trying to create an abstract extension that would do a bunch of things per Class Name, including - if possible - dynamically extending ModelAdmin with that class. In essence, extend ModelAdmin with this, let's say, AutoModelAdmin controller, which would create instance, define the backend URL's and add the class to be managed.

Thank you :)