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.

General Questions /

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

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

How to include form to somepage


Reply


2 Posts   800 Views

Avatar
Webdoc

Community Member, 334 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, 42 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 :-)