| foxhound |
|
|---|---|
|
I am trying to allow me to access the contact form (the default plugin coming with the package) from a page, not just the standalone page. I have no idea how (and if even) I can achieve this so I tried changing the hooks to page and some other things but except making sure the plugin dopes not work at all I cant get anywhere. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
| Dayver |
|
|---|---|
|
For first step try use read AJAX Helpers in Cotonti and in any tpl include html code an example:
<div id="ajax_contact">
<form action="index.php?e=contact" method="post" name="contact_ajax" id="contact_ajax" class="ajax post-ajax_contact">
...
any your code from contact form
....
<button type="submit" class="btn btn-primary">{PHP.L.Submit}</button>
</form>
<div>
Pavlo Tkachenko aka Dayver
|
| foxhound |
|
|---|---|
|
Thanks for that but I know how to include a form (with ajax). I was just hoping the default contact plugin could be used so contacts were actually written to the DB and any of the staff could reply. (easier than sharing mail accounts). <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|