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.

Form Questions /

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

HELP!!! Would like a quick contact form on homepage


Go to End


2 Posts   1751 Views

Avatar
dannycheeseman

Community Member, 1 Post

8 June 2010 at 11:52pm

Hello All,

I would like to have a quick contact form on my homepage

like the one one on here http://www.quicksaleproperties.com/

Could someone please help me with a detailed newbie description as I have been searching for hours with no avail.

Thank you in advance.

Danny

Avatar
_Vince

Community Member, 165 Posts

9 June 2010 at 9:37am

Yup. Don't know how much of a newbie you are.

You download the userforms module. It'll be on the Extensions (you can see it in the black strip on top of this page)

Put the folder in with the rest of your silverstripe stuff

Rename the folder to "userforms" (get rid of the version id and stuff like that)

Run /dev/build from your browser

If you go into the CMS and create a new page type, you will see "user defined form" among your choices.

Create a page of that type.

The page will have a bunch of tabs, choose the "Form" tab

Pick the field types you want from the list

Save and publish

Bob's your uncle. Pretty much.

The page will still have a $Content variable. Your next step is to edit the tamplate (page.ss) to have two divs, with the $Content on one side and the form on the other. Or something a lot like that.