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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

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

Silverstripe 3 adding new feature to model admin list


Go to End


3 Posts   1940 Views

Avatar
NETim

Community Member, 24 Posts

14 May 2013 at 10:58pm

Hi Guys,

Trying to add a new feature into the model admin. We have a site that lists contacts in a model admin extension.

What we want to be able to do is add a button to model admin that will pass the filtered list of contacts to a function that will allow the site admin to add a message and push the contact phone numbers and message out to an SMS API.

I can figure out how to do this with SS2.4 but 'm a bit lost with doing this in SS3.

Any ideas?

Avatar
Willr

Forum Moderator, 5523 Posts

15 May 2013 at 8:03pm

How you did it with 2.4 should roughly work with 3.0. You might want to look at writing a DataExtension instance for ModelAdmin and define updateEditForm. Pushing a new FormAction to the Form.

Avatar
NETim

Community Member, 24 Posts

15 May 2013 at 8:30pm

Thanks Willr.

pretty much the way these guys managed it http://www.silverstripe.org/customising-the-cms/show/18565

I have tried this method and hit the never ending error chain.

All I really need pointers with is adding the button and where to define the function. The function itself is relatively easy.

Any help would be great.