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.

Customising the CMS /

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

ModelAdmin search result


Go to End
Reply


2 Posts   413 Views

Avatar
BenWu

Community Member, 92 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.