Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » ModelAdmin search result

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

Page: 1
Go to End
Author Topic: 309 Views
  • BenWu
    Avatar
    Community Member
    90 Posts

    ModelAdmin search result Link to this post

    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

  • jak
    Avatar
    Community Member
    46 Posts

    Re: ModelAdmin search result Link to this post

    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.

    309 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.