Forums / Setup & design / the incredible problem of the related objects...

"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".

the incredible problem of the related objects...

Author Message

Daniele Nocentini

Tuesday 21 June 2005 8:05:13 am

:-)

I've searched the forum with no fortune.

I cannot find a clear example to retrieve the attributes of a related object inside a node.

For example from the classic full.tpl:

{default content_object=$node.object content_version=$node.contentobject_version_object node_name=$node.name}
{let related_objects=$content_version.related_contentobject_array}
<p>
<fieldset>
<legend>Contenuti correlati</legend>
<ul class="list">
{section name=ContentObject  loop=$related_objects show=$related_objects}
<li>{content_view_gui view=text_linked content_object=$ContentObject:item}</li>
{/section}
</ul>
</fieldset>
</p>
{/let}
{/default}

I do not need the "content_view_gui view=text_linked" syntax but instead (if possible) a way to retrieve the path of the related file (my related object is a file this time).

A generic method to retrieve a specific attribute from a specific related object could be the non plus ultra...

:-)

Antica Bottega Digitale srl
http://www.abd.it