Forums / Setup & design / Creat new Form

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

eZ debug

Timing: Jan 17 2025 22:49:43
Script start
Timing: Jan 17 2025 22:49:43
Module start 'content'
Timing: Jan 17 2025 22:49:44
Module end 'content'
Timing: Jan 17 2025 22:49:44
Script end

Main resources:

Total runtime0.8290 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.7188180.8516
Module start 'content' 0.00580.7066 769.5703608.2969
Module end 'content' 0.71250.1165 1,377.8672337.4063
Script end 0.8289  1,715.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4445210.0002
Check MTime0.00140.1699210.0001
Mysql Total
Database connection0.00070.084210.0007
Mysqli_queries0.758191.45442020.0038
Looping result0.00200.24062000.0000
Template Total0.803696.920.4018
Template load0.00200.243220.0010
Template processing0.801696.696020.4008
Template load and register function0.00010.014010.0001
states
state_id_array0.00080.096110.0008
state_identifier_array0.00110.138220.0006
Override
Cache load0.00180.2112550.0000
Sytem overhead
Fetch class attribute can translate value0.00090.114640.0002
Fetch class attribute name0.00120.142560.0002
XML
Image XML parsing0.00100.119240.0002
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00230.2729270.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs