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

Not sure if I need to develop a module?


Reply

3 Posts   325 Views

Avatar
Cgull

14 January 2013 at 9:09pm Community Member, 23 Posts

Hi,

On my site I have a donations page.

Every month, the admin gets a long list of donators and the list is divided by donation amount range like:
$1 - $99
$100 - $999
$1000 - $9999

etc.

I would like to create a form for the admin user to create these donations.

So the form will have fields:

Text field: Name
Dropdown: Donation Amount Range

Button: Add Another

Do I need to create a module for it?

I don't want to use a new page type as the process of creating a page is longer than I want since each donation is one field and a selection for a dropdown list.

So I think I need to develop a module, and would like to hear opinions and a refference to a good tutorial that can help me with that?

Avatar
IOTI

15 January 2013 at 1:35am Community Member, 189 Posts

Unless you plan on using this for multiple sites you won't need to create a module. I think creating a new ModelAdmin section in the CMS would be your best solution. Check out the tutorial here: [url]http://doc.silverstripe.org/framework/en/reference/modeladmin[/url].

Avatar
Cgull

15 January 2013 at 3:31am Community Member, 23 Posts

God bless you, will look at this tutorial.

Thank you