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

ModelAdmin search result


Go to End


2 Posts   849 Views

Avatar
BenWu

Community Member, 97 Posts

4 August 2012 at 12:23am

Hello

I would like to put a list of data under the Datagridfield (which contains the searchresult of the model managed by the Modeladmin).

I can extend the ModelAdmin class, put an extra method in to get the datalist,

but then i have to go into framework/admin/template/Includes/ModelAdmin_Content.ss to add a line after

$EditForm 
$MyDataList

to get the data in. this works but it's not nice to update anything in the framework.

How do i have my own ExtendedAdmin_Content.ss and where shall I put this file?

I put it under

 mythemeName/templates

or
mythemeName/templates/Layout

or
 mythemeName/templates/Includes

but it doesn't work

Avatar
jak

Community Member, 46 Posts

6 August 2012 at 1:54am

I am not very familiar with ModelAdmin, but if you are extending the class anyway, then you could just add your additional data as a new FormField to the EditForm.