Object Relation Output Problem

Author Message

David Jones

Wednesday 15 November 2006 4:01:59 am

I've created a class and added an objection relation attribute (called link_node).

This attribute is used to store a link to another node in the site.

How do I output this link?

I have the following which doesn't work,

{set $inner_related_link_node = fetch( 'content', 'related_objects', hash( 'object_id', $related_object.id,'all_relations', true()))}
				  				
{if eq($inner_related_link_node.content_class.identifier, "text_page" )}
	
   {foreach $inner_related_link_node as $inner_related_node}
       {$inner_related_node.data_map.link_node.content}
   {/foreach}

{/if}

Please help


Xavier Dutoit

Wednesday 15 November 2006 8:28:44 am

Not sure I got the problem but try using the standard attribute_view_gui

http://www.sydesy.com

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