(reverse_)related_objects VS Object relation browse

Author Message

Pierre Tissot

Thursday 04 May 2006 6:14:48 am

Hi eZ planet,

I have the follwing problem, I started to use the "Object Relations" to make my project, every thing was worlking fine, meanwhile I found the "Object relation browse" extention and I started toi use it. Well the problem is that it seems that the "attribute_identifier" does't work well with this extention beacause I'm having a completly diferent display of the information. (it was supose to stay exactly the same, no???)

I maximum that i was abble to do is to list all the relations with all_relations set to true.

what is the diference between this two codes:

Code 1:

 	{def $objects=fetch( 'content', 'reverse_related_objects',
                     hash( 'object_id',  $node.object.id,'all_relations', true()) )}
 
        {foreach $objects as $object}
            <a href={$object.main_node.url_alias|ezurl}>{$object.name|wash()}</a><br/>
        {/foreach}
 

Code 2:

	{def $objects=fetch( 'content', 'reverse_related_objects',
                     hash( 'object_id', $node.object.id) )}
        
	{foreach $objects as $object}
	      <a href={$object.main_node.url_alias|ezurl}>{$object.name|wash()}</a><br/>
	{/foreach}
 

Well my problem is that I need to see what are the relations between A-B and A-C and i want to have all the object that are under B related to A and separatly all C under A. With only "all relations" working and not the "attribute_identifier" i dont now how to do this.....any help?

Thanks in advance
PiR

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 18 2025 21:01:55
Script start
Timing: Jan 18 2025 21:01:55
Module start 'layout'
Timing: Jan 18 2025 21:01:55
Module start 'content'
Timing: Jan 18 2025 21:01:55
Module end 'content'
Timing: Jan 18 2025 21:01:55
Script end

Main resources:

Total runtime0.0165 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0469152.6406
Module start 'layout' 0.00530.0026 740.687539.4922
Module start 'content' 0.00790.0064 780.179789.3828
Module end 'content' 0.01440.0021 869.562530.3047
Script end 0.0165  899.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002716.2619140.0002
Check MTime0.00116.4177140.0001
Mysql Total
Database connection0.00095.256810.0009
Mysqli_queries0.002112.479830.0007
Looping result0.00000.085310.0000
Template Total0.001710.610.0017
Template load0.00106.063510.0010
Template processing0.00074.468810.0007
Override
Cache load0.00074.239010.0007
General
dbfile0.00127.293880.0002
String conversion0.00000.040540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs