object relations and add locations

Author Message

Ron Schöningh

Tuesday 26 January 2010 5:48:09 am

Hi All,

I have a problem displaying object relations in locations added by "add locations". I us this code to get a list of related objects:

{def $related = fetch('content', 'related_objects',
                  hash( 'object_id', $node.object.id,
                        'attribute_identifier', 'article/folder' ))}

This only displays a list of related objects on the original location but not on the added locations. How to solve this?

Thx!!!

Myxt Web Solutions
http://www.myxt.nl

Robin Muilwijk

Tuesday 26 January 2010 12:02:38 pm

Hi Ron,

I have no idea if this is going to help you but I did a quick search on the forum and found this:

http://share.ez.no/forums/developer/display-the-related-object-of-a-related-object

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Gaetano Giunta

Tuesday 26 January 2010 1:02:06 pm

Multiple locations ans object relations are two separate, unrelated things. To find all the 'multiple locations' a node belongs to, you have to find its corresponding nodes

Principal Consultant International Business
Member of the Community Project Board

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 02:00:39
Script start
Timing: Jan 18 2025 02:00:39
Module start 'layout'
Timing: Jan 18 2025 02:00:39
Module start 'content'
Timing: Jan 18 2025 02:00:40
Module end 'content'
Timing: Jan 18 2025 02:00:40
Script end

Main resources:

Total runtime1.1946 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.3438152.6250
Module start 'layout' 0.00520.0034 741.968839.4453
Module start 'content' 0.00861.1846 781.4141578.4453
Module end 'content' 1.19310.0014 1,359.859412.1563
Script end 1.1946  1,372.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2612160.0002
Check MTime0.00120.1021160.0001
Mysql Total
Database connection0.00080.068910.0008
Mysqli_queries1.145795.9009590.0194
Looping result0.00060.0515570.0000
Template Total1.156596.820.5782
Template load0.00200.169320.0010
Template processing1.154496.635220.5772
Template load and register function0.00010.011310.0001
states
state_id_array0.00180.154410.0018
state_identifier_array0.00180.149720.0009
Override
Cache load0.00170.1414170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.056330.0002
Fetch class attribute name0.00200.166450.0004
XML
Image XML parsing0.00130.107530.0004
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00090.0795240.0000
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs