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, Ed, biapar, Willr, Ingo, swaiba

ModelAdmin - adding html to the results lists

Go to End

3 Posts   695 Views


Community Member, 243 Posts

28 September 2011 at 11:07pm


when using the modeladmin search, you get the list of results in the main area of the page - including an 'x' to delete the item.

What I want to do is add a few extra columns - a couple of html links, and a tickbox.

Using jquery, I'll make the links open popup windows, and the tick box will be used to change 'status' of multiple items at once. I think I know how I can do the jquery bit - but I'm really not sure how to get the links into the table...

Ideas welcome!


Forum Moderator, 1848 Posts

29 September 2011 at 12:05am

I've got code that I have been meaning to make a module of for sometime that does this (including the tick boxes).

For now you can always use casting to show some information... (see casting on


Community Member, 243 Posts

29 September 2011 at 4:52pm

Getting There!

in the end,, after a load of searching, and some pure luck, I've found a completely different option - rendering the table with a custom template.

class OrderModelAdmin_CollectionController extends ModelAdmin_CollectionController {

function ResultsForm($searchCriteria){
$form = parent::ResultsForm($searchCriteria);
return $form;

and putting a custom SS template in mysite/template/includes/

the template is copy of the silverstripe this template also includes ''" however i combined it into one and added my extra columns in, and some extra buttons at the bottom...