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

How to include form to somepage


Go to End


2 Posts   992 Views

Avatar
Webdoc

Community Member, 349 Posts

11 March 2011 at 2:51am

Edited: 11/03/2011 3:02am

If i have Pagetype named Houses.php and template Houses.ss how can i add the contact form to this pagetype.
Also if i use on Houses the tille as house name how can i add the housename to subject value automaticly.

Need something like this:

Subject: Name of house already set on page load
email: client puts email into emailfield
Message: client writes something here

Avatar
blueskies

Community Member, 44 Posts

12 March 2011 at 10:18am

This tutorials show you just about everything you need to know for that type of form: http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/

I shows you how to add the contact form to the template and how the handle it by emailing it :-)