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.