the cancelbutton

Author Message

justin kazadi

Thursday 18 September 2008 9:02:48 am

hello all,
i made the copy of the feedback_form , rename it ( content class : "contact" ) and add others attributes. i have create in override/full the contact.tpl . this file is like this :

 {include name=Validation uri='design:content/collectedinfo_validation.tpl'
                                           class='message-warning'
                                         validation=$validation collection_attributes=$collection_attributes} 
                                      <form action={'content/action'|ezurl()} method="post"> 

.....
....
....

<div class="send">
		                 	             	      	     	        	       
		     <input type="submit"  name="ActionCollectInformation" value="send" />
                     <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" />	
                                                                 
</div>
<div class="contact-annuler">
		     <input type="submit" name="CancelButton" value="discard" />
		                 	             	      	     	        	   
</div>


onclick on the send button all thinks are alright but onclick on the discard button i have this error :

Error: kernel/content/action.php  	

Unknown content object action

what can i do please?
thanks in advance.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Gabriel Finkelstein

Thursday 18 September 2008 9:39:09 am

That's because a collection form cannot be discarded. There's nothing to discard.
If you want to take the user somewhere else, then do a javascript redirection when clicking on "Discard", or put that button in a separate form with action="/someurl" and method="get"

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 19 2025 04:16:58
Script start
Timing: Jan 19 2025 04:16:58
Module start 'layout'
Timing: Jan 19 2025 04:16:58
Module start 'content'
Timing: Jan 19 2025 04:16:58
Module end 'content'
Timing: Jan 19 2025 04:16:58
Script end

Main resources:

Total runtime0.8690 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 589.0391152.6094
Module start 'layout' 0.00940.0047 741.648439.4141
Module start 'content' 0.01410.8534 781.0625533.1797
Module end 'content' 0.86740.0015 1,314.242212.1875
Script end 0.8689  1,326.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4172160.0002
Check MTime0.00150.1753160.0001
Mysql Total
Database connection0.00130.144010.0013
Mysqli_queries0.811593.3909540.0150
Looping result0.00060.0643520.0000
Template Total0.812693.520.4063
Template load0.00230.260720.0011
Template processing0.810393.249220.4052
Template load and register function0.00010.016010.0001
states
state_id_array0.00480.553910.0048
state_identifier_array0.00140.155520.0007
Override
Cache load0.00190.2137150.0001
Sytem overhead
Fetch class attribute can translate value0.00100.115320.0005
Fetch class attribute name0.00100.116840.0003
XML
Image XML parsing0.00110.131620.0006
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00120.1363220.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs