Forums / Developer / Object Relation Output Problem

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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