Forums / Setup & design / Adding related object without form page

Adding related object without form page

Author Message

Aleksander Lech

Monday 03 July 2006 6:29:18 am

Hello,
I'd like to add related object to another object using this form:

<form class="txtForm" style="margin-left:10px; margin-bottom:10px;" name="fullview" method="post" action="/index.php/plain/content/edit/{$zespol.contentobject_id}">
<input type="hidden" name="SelectedObjectIDArray[]" value="{$node.contentobject_id}" />
<input type="hidden" name="HasObjectInput" value="0" />									
<input type="hidden" name="BrowseActionName" value="AddRelatedObject_{$zespol.data_map.zespol_prac.id}" />    
<input type="hidden"  name="CustomActionButton[{$zespol.data_map.zespol_prac.id}_set_object_relation_list]" value="{$zespol.data_map.zespol_prac.id}" /> 
<input class="button" type="submit" name="SelectButton" value="{$zespol.name}" />
</form>	

But all I get is edit form without related object added. Is there something missing in this form?

Greetings
Aleksander