Share » Forums » Setup & design » Object relations attribute

Object relations attribute

Object relations attribute

Wednesday 20 April 2011 8:02:22 am - 22 replies

Modified on Wednesday 20 April 2011 8:03:23 am by Andy Woods

Author Message

Andy Woods

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> tag
Can you tell me what code I need to include them please?

Thanks,

Andy

Marko Žmak

Sunday 15 May 2011 2:27:00 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?

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu