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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 00:59:19
Script start
Timing: Jan 20 2025 00:59:19
Module start 'layout'
Timing: Jan 20 2025 00:59:19
Module start 'content'
Warning: PHP: E_WARNING Jan 20 2025 00:59:20
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 2 and paragraph in Entity, line: 31 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 20 2025 00:59:20
DOMDocument::loadXML(): Opening and ending tag mismatch: paragraph line 2 and section in Entity, line: 35 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Timing: Jan 20 2025 00:59:20
Module end 'content'
Timing: Jan 20 2025 00:59:20
Script end

Main resources:

Total runtime0.7195 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 590.3906152.6250
Module start 'layout' 0.00640.0025 743.015639.4453
Module start 'content' 0.00880.7092 782.4609426.0703
Module end 'content' 0.71800.0014 1,208.53139.6719
Script end 0.7194  1,218.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4521160.0002
Check MTime0.00140.1879160.0001
Mysql Total
Database connection0.00110.157910.0011
Mysqli_queries0.680494.5680520.0131
Looping result0.00050.0711500.0000
Template Total0.682794.920.3413
Template load0.00220.298820.0011
Template processing0.680594.584620.3403
Template load and register function0.00030.039210.0003
states
state_id_array0.00150.212210.0015
state_identifier_array0.00130.177420.0006
Override
Cache load0.00170.2374110.0002
Sytem overhead
Fetch class attribute can translate value0.00040.059710.0004
Fetch class attribute name0.00120.163620.0006
XML
Image XML parsing0.00010.012410.0001
class_abstraction
Instantiating content class attribute0.00000.001420.0000
General
dbfile0.00070.0963100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs