Forums / Developer / ObjectRelationList and user templates

ObjectRelationList and user templates

Author Message

Pablo C. Vergara Castro

Tuesday 30 November 2004 5:17:56 am

Hi to all.

I would like to know the way I can work with attributes of the type "ObjectRelationList" in an own template.

My situation is the following one, first I have a class with several attributes and one of them is of the type "ObjectRelationList" and I want to show a form in which it can add objects of a certain class in this attribute.

I tried with this but nothing:


  <input type="hidden" name="ContentObjectAttribute_id[]" value="{$content_attributes.9.id}" />
				
  {let promocion=fetch(
    'content',
    'list',
    hash(
      'parent_node_id',
      71,
      class_filter_type, 'include',
      class_filter_array, array( 'promocion')
      ))
  }

   {section loop=$promocion}
     <input 
       type="checkbox" 
       name="ContentObjectAttribute_selection[{$content_attributes.9.id}][]" 
       value="{$:item.contentobject_id}" />&nbsp;{$:item.object.data_map.nombre.data_text}
   {/section}				
 {/let}

Any ideas?

Greetings

Pablo C. Vergara Castro

Tuesday 30 November 2004 8:41:09 am