Hello,
I am using silverstripe to create a OnePage Website - all pages are rendered by one main page to create a scrollable website.
So far the site works very well (http://cms.entro-p.com/), however now I need a contact form.
The problem is, due to letting one page render all forms (
<% loop AllChildren %>
$renderWith($ClassName)
<% end_loop%>
)
I cannot use the page controllers.
Rendering the form works by just adding the ContactForm method to the page class that should render the form.
However, I do not know where I should add the submit method - I tried adding it in the custom form class but that did not work. Can anyone help me?
Thanks in advance!
Daniel Eder
EDIT: I solved the problem by adding the form to the page holder class and moving it to the right position using javascript.