eZ Community » Forums » Setup & design » Displaying Related Objects
expandshrink

Displaying Related Objects

Displaying Related Objects

Monday 28 June 2004 8:20:36 am - 3 replies

For a folder i have few related objects (say few infopages). When user selecting this folder i want to display these related objects as a link in user site. Is there any template code to achieve this?
Thanks

Monday 28 June 2004 6:27:43 pm

If you pick the template node/view/full for the folder class has the code for that. Check design/standards/templates

Amina.

Tuesday 29 June 2004 9:10:32 am

Is this the code you thought

{let name=Object related_objects=$content_version.related_contentobject_array}
 {section name=ContentObject  loop=$Object:related_objects show=$Object:related_objects  sequence=array(bglight,bgdark)}
        <div class="block">
        {content_view_gui view=text_linked content_object=$Object:ContentObject:item}
        </div>
      {/section}
    {/let}

I am not getting anything by using this code. Could you please give me the full functional code?

Modified on Tuesday 29 June 2004 9:11:18 am by shajeer K P

Tuesday 29 June 2004 10:45:12 am

First thanks to <b>Amina</b> for helping to solve this problem.
I used the following code to get the related objects and put in the relevant template file.

{default content_version=$node.contentobject_version_object}
{let name=Object related_objects=$content_version.related_contentobject_array}
{section name=ContentObject  loop=$Object:related_objects show=$Object:related_objects  sequence=array(bglight,bgdark)}
{content_view_gui view=text_linked content_object=$Object:ContentObject:item}
{/section}
{/let}
{/default}
expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from