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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Create model admin with just a static form, no child objects


Go to End


2 Posts   681 Views

Avatar
Rodskagg

Community Member, 26 Posts

29 April 2015 at 2:11am

All ModelAdmin examples I've seen are based on a model admin used to manage a number of dataobjects, typically in the form of a gridfield. However, I want to manage just one DataObject, with a number of data fields. I realize I could add these fields to, for example, the site config, but I want it to appear as a separate menu item in the left column. Is this possible? Is it possible to create some kind of DataObject singleton, which I can edit via a link in the left navigation in the admin interface?

Avatar
Pyromanik

Community Member, 419 Posts

5 May 2015 at 10:11pm

ModelAdmin is 100% the wrong solution to be looking at.
You've already touched on a better way - look up on how Settings menu works (CMS module adds it, so it's not 'inbuilt' to the admin area itself) and replicate/subclass that instead :)