after getting the plain contact form running in a normal site template I would like to integrate it into a snippet to embed all over the site optional.
But inserting it via snippet the controller is not reacting on the submit. It is 1:1 out of the gist and functioning on a template based subside. Do I have to change the listener in the controller? return function($site, $pages, $page) ?
Yes I did that but then i will be redirected to that page afterwards and thats not exactly that what I want. I thought I could call the controller global everywhere on the site…
So the snippet is used on multiple subsites and when it is filled out the user should stay on that and not be redirected to a new site.
Maybe to complex… Should insert just a link and deal the whole form stuff on that subsite…