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


2 Posts   722 Views


11 March 2011 at 2:51am (Last edited: 11 March 2011 3:02am), Community Member, 332 Posts

If i have Pagetype named Houses.php and template 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


12 March 2011 at 10:18am Community Member, 42 Posts

This tutorials show you just about everything you need to know for that type of form:

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