Question on Object Relation

Question on Object Relation

Wednesday 26 November 2003 6:47:58 am - 3 replies

Modified on Wednesday 26 November 2003 6:50:22 am by Oliver Weich

Author Message

Claus Jensen

Wednesday 26 November 2003 7:06:24 am

Hi Oliver,
If you look in the standard/content/view/full.tpl you see an example of this. Check:

<h2>{"Related objects"|i18n("design/standard/content/view")}</h2>

<table class="list" width="100%" cellspacing="0" cellpadding="0" border="0">
{section name=Object loop=$related_contentobject_array show=$related_contentobject_array sequence=array(bglight,bgdark)}
<tr>
<td class="{$Object:sequence}">
{content_view_gui view=text_linked content_object=$Object:item}
</td>
</tr>
{/section}

regards,
claÜs

Paul Borgermans

Wednesday 26 November 2003 7:10:32 am

This is what I currently use in several templates for full view of classes with keywords:

{let related=$node.object.data_map.keywords.content.related_objects}
{section show=$related}
<h3>Related documents containing one or more of the same keywords</h3>
<ol>
{section name=Related loop=$related}
<li><a href={$:item.url_alias|ezurl}>{$:item.name}</a></li>
{/section}
</ol>
{/section}
{/let}

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Oliver Weich

Friday 28 November 2003 3:27:27 am

Thanks! Your help was very useful!

In fact I found a workaround for my Problem by using the embed viewmode. :)

Regards

Oliver

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

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