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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

E-Noticeboard: General approach advice sought


Go to End


3 Posts   1644 Views

Avatar
MartinPhone

Community Member, 57 Posts

6 February 2011 at 12:09am

I have been asked to create a E-Noticeboard - unregistered visitors can fill out and submit a very simple form (perhaps just Title and Content), which is saved in the CMS, which the admins then approve (and edit) before they go live. It would fit with the design if the form were in the widget area.

The site I am working on (antennastudios.co.uk) has a widget area on every page. Sometimes this is filled with normal widgets, but particular page types can use the area for their own uses. I'm happy making new page types etc.

So, should I be using UserForms? I can't find a UserForms widget - and I can't quite see how this can work.

I think my biggest problem at the moment is not knowing which route to take and my head is very fuzzy about this whole problem although it seems so simple. I'm by no means a SS expert but believe if I know where I should be going, I will get there!

Avatar
Willr

Forum Moderator, 5523 Posts

6 February 2011 at 12:39am

So, should I be using UserForms? I can't find a UserForms widget - and I can't quite see how this can work.

There is no official UserForms widget, it's designed to be a PageType. Plus you may run into issues with UserForms are you mentioned moderating entries in the back end. To get that to work in UserForms would rather extending the module in multiple places and not sure if anyones tried moderation like that.

Have a read of the 3rd tutorial (forms) and that'll explain how to develop custom forms into DataObjects. From that you can implement moderation of those dataobjects. Some helpful links..

Tutorials:
http://doc.silverstripe.org/sapphire/en/tutorials/3-forms
http://doc.silverstripe.org/sapphire/en/tutorials/5-dataobject-relationship-management

Moderation module:
https://github.com/silverstripe-labs/silverstripe-moderation

Avatar
MartinPhone

Community Member, 57 Posts

6 February 2011 at 7:16am

Thanks - something to be getting on with! :)