Tuesday 24 March 2009 5:34:21 am
Hi, Thank you for your support. I checked the database contentobject table. Once I click on the "New Image" it creates the new content object in the table. Then when you do the editing (CHeck following codes) it is not updated the created object.
Link to create new Image in the template
----------------------------------------------------------------
<form method="post" action={"content/action"|ezurl}>
<div class="buttonblock">
<input type="hidden" name="ClassIdentifier" value="image" />
<input type="hidden" name="NodeID" value="{$node.node_id}" />
<input class="button-new-image" type="submit" name="NewButton" value="Nouvelle image" />
</div> </form>
Image edit template
--------------------------------
<form enctype="multipart/form-data" method="post" action={concat("/content/edit/",$object.id,"/",$edit_version,"/" ,$edit_language|not|choose(concat($edit_language,"/"),''))|ezurl}> {include uri="design:content/edit_validation.tpl"}
<div class="block">
{attribute_edit_gui attribute_base=$attribute_base attribute=$object.data_map.name}
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$object.data_map.name.id}" /> </div>
<div class="block">
{attribute_edit_gui attribute_base=$attribute_base attribute=$object.data_map.caption}
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$object.data_map.caption.id}" /> </div>
<div class="block">
{attribute_edit_gui attribute_base=$attribute_base attribute=$object.data_map.image}
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$object.data_map.image.id}" /> </div>
<div class="buttonblock">
<input type="hidden" name="MainNodeID" value="{$main_node_id }" />
<input type="hidden" name="DiscardConfirm" value="0" />
<input class="image" type="submit" name="PublishButton" value="{'Send for publishing'|i18n('design/ezwebin/edit/comment')}" />
<input class="image" type="submit" name="DiscardButton" value="{'Discard'|i18n('design/ezwebin/edit/comment')}" /> </div> </form> Please help!!
http://www.eyepax.com
|