Displaying Related Objects

Author Message

shajeer K P

Sunday 27 June 2004 11:20:36 pm

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

Amina Bacar

Monday 28 June 2004 9:27:43 am

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

Amina.

shajeer K P

Tuesday 29 June 2004 12: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?

shajeer K P

Tuesday 29 June 2004 1: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}

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