Forums / Developer / ObjectRelationList and user templates

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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