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.