Creat new Form

Author Message

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
maxime.thomas@wascou.org | 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

Martynas Bilevičius

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=templates
Match[class_identifier]=contact_form

Martynas Bilevičius

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...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 00:50:40
Script start
Timing: Jan 18 2025 00:50:40
Module start 'layout'
Timing: Jan 18 2025 00:50:40
Module start 'content'
Timing: Jan 18 2025 00:50:40
Module end 'content'
Timing: Jan 18 2025 00:50:40
Script end

Main resources:

Total runtime0.0205 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 589.2188152.6094
Module start 'layout' 0.00880.0040 741.828139.4297
Module start 'content' 0.01280.0056 781.257893.2891
Module end 'content' 0.01840.0021 874.546934.3047
Script end 0.0205  908.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003114.9246140.0002
Check MTime0.00136.2430140.0001
Mysql Total
Database connection0.00178.276310.0017
Mysqli_queries0.004019.634730.0013
Looping result0.00000.175410.0000
Template Total0.00168.010.0016
Template load0.00094.446510.0009
Template processing0.00073.560410.0007
Override
Cache load0.00063.142410.0006
General
dbfile0.00104.866980.0001
String conversion0.00000.054640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs