Forums / Setup & design / Creat new Form
Martynas Bilevičius
Wednesday 09 April 2008 2:30:04 pm
Hello, i creat new form class and add templates, but then i submit it and fill all needet fields form dont go any where and dont senda mail, where can be problem, i read this article but http://ez.no/developer/articles/how_to_create_ez_publish_forms/ and do like write in it. In debung mode i see this: Non-static method eZInformationCollectionAttribute::create() should not be called statically, assuming $this from incompatible context in.
Maxime Thomas
Wednesday 09 April 2008 11:46:39 pm
Can you provide some code example or file structure ?It's a bit hard to help you with no information ... :-D
Maxime Thomas [email protected] | www.wascou.org | http://twitter.com/wascou Company Blog : http://www.wascou.org/eng/Company/Blog Technical Blog : http://share.ez.no/blogs/maxime-thomas
Thursday 10 April 2008 12:24:03 am
Here is templete file full:<div class="contact-form">
{include name=Validation uri='design:content/collectedinfo_validation.tpl' class='message-warning' validation=$validation collection_attributes=$collection_attributes}
<form method="post" action={"content/action"|ezurl}>
<table width="200" border="0" align="left" cellpadding="0" cellspacing="0"> <tr align="left"> <td><h4>{$node.data_map.text.contentclass_attribute.name}:</h4></td> <td>{attribute_view_gui attribute=$node.data_map.text}</td> </tr> <tr align="left"> <td><h4>{$node.data_map.text2.contentclass_attribute.name}:</h4></td> <td>{attribute_view_gui attribute=$node.data_map.text2}</td> </tr> <tr align="left"> <td><h4>{$node.data_map.text3.contentclass_attribute.name}:</h4></td> <td>{attribute_view_gui attribute=$node.data_map.text3}</td> </tr> <tr align="left"> <td colspan="2"><h4>{$node.data_map.text4.contentclass_attribute.name}:</h4></td> </tr> <tr align="left"> <td colspan="2">{attribute_view_gui attribute=$node.data_map.text4}</td> </tr> <tr align="left"> <td colspan="2"> <input type="submit" class="defaultbutton" name="ActionCollectInformation" value="{"Send form"|i18n("design/ezwebin/full/feedback_form")}" /> <input type="hidden" name="ContentNodeID" value="{$node.node_id}" /> <input type="hidden" name="ContentObjectID" value="{$node.object.id}" /> <input type="hidden" name="ViewMode" value="full" /> </td> </tr></table>
</form></div>
Also in override.ini.append.php i add: [full_contact_form] Source=node/view/full.tpl MatchFile=full/contact_form.tpl Subdir=templatesMatch[class_identifier]=contact_form
Thursday 10 April 2008 1:57:31 am
Maybe i need add more in override file or edit some configuration file ?
arthur guillerm
Thursday 26 May 2011 7:24:20 am
I have the same problem, if anybody have a solution...