Tuesday 23 September 2008 5:00:56 am
Hi,
I want to know how the $validation object was created and passed, when using the
{include uri="design:content/edit_validation.tpl"}
or
{include name=Validation uri='design:content/collectedinfo_validation.tpl'
class='message-warning'
validation=$validation collection_attributes=$collection_attributes}
when the form is embeded in an xml block, or linked via object relation. For example, when loaded a content/view/full.tpl (with it, I used an override to show my form in an XML block); I got a template error: Unknown template variable 'validation' in namespace 'xmltagns:ContentView'.
And, the validation functionality is no longer for me to use. I included these hidden fileds:
<input type="hidden" name="ActionCollectInformation" />
<input type="hidden" name="ContentNodeID" value="{$object.main_node_id}" />
<input type="hidden" name="ContentObjectID" value="{$object.id}" /> <input type="hidden" name="ViewMode" value="embed" /> But, when I test with a wrong email address, the form just redirect to the original form object's full template, then, no warning message and the layout is broken.
Certified eZ Publish 4 developer looking for develop information & collaboration.
|