Forums / Setup & design / Object relations attribute
Andy Woods
Saturday 14 May 2011 11:11:36 am
Thanks Marko (again ;-)
I've got it working using your tip:
<input type="hidden" name="ContentObjectAttribute_ezstring_data_text_{$user_object.data_map.first_name.id}" value="{$user_object.data_map.first_name.content}" />
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$user_object.data_map.first_name.id}" />
Does the format of how I'm formulating the hidden fields look right to you?
Andy
Saturday 14 May 2011 11:49:09 am
I have a quick question about formatting the <form tag... <form enctype="multipart/form-data" method="post" action={concat( "/content/edit/", $user_object.id, "/", $edit_version, "/", $edit_language|not|choose( concat( $edit_language, "/" ), '' ) )|ezurl}> If I view the source of the page I see the following: <form enctype="multipart/form-data" method="post" action="/index.php/content/edit/64/"> but I know I should have : <form name="editform" id="editform" enctype="multipart/form-data" method="post" action="/index.php/content/edit/64/18/eng-GB"> The $edit_version and $edit_language values aren't being included in the <form> tagCan you tell me what code I need to include them please?
Thanks,
Marko Žmak
Sunday 15 May 2011 2:27:00 am
Yes that should be it. But use the wash() operator on the value of the attribute input.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth