Author Topic

Andy Woods

Tuesday 26 April 2011 6:25:25 am

Comment67554

Hi Marko,

I'm not 100% sure of what to do yet.

I've created a page that includes the following so far:

<form name="editform" id="editform" enctype="multipart/form-data" method="post" action={concat( '/content/edit/', $object.id, '/', $edit_version, '/', $edit_language|not|choose( concat( $edit_language, '/' ), '/' ), $is_translating_content|not|choose( concat( $from_language, '/' ), '' ) )|ezurl}>

{include uri='design:content/edit_validation.tpl'}
more code to insert here (as per questions below)
</form>

In order to display the Object relations attribute I assume I need to include the code within design/standard/templates/content/datatype/edit/ezobjectrelationlist.tpl

Am I right in thinking that I need to include the following code for each item that is displayed within the 'Edit Profile' page, ie. First name, Last name, Username, Password, Confirm Password, Email address etc.?

<input type="hidden" name="ContentObjectAttribute_id[]" value="#id_of_the_attribute#" />
<input type="text" name="ContentObjectAttribute_ezstring_data_text_#id_of_the_attribute#" value="#value_of_the_attribute#" />

Andy