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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   946 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 :-)