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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Not sure if I need to develop a module?


Go to End


3 Posts   869 Views

Avatar
Cgull

Community Member, 23 Posts

14 January 2013 at 9:09pm

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
copernican

Community Member, 189 Posts

15 January 2013 at 1:35am

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: http://doc.silverstripe.org/framework/en/reference/modeladmin.

Avatar
Cgull

Community Member, 23 Posts

15 January 2013 at 3:31am

God bless you, will look at this tutorial.

Thank you