Forums / Setup & design / Show Related Objects from one identifier

Show Related Objects from one identifier

Author Message

Martin Sanders

Friday 20 July 2007 4:27:35 am

Hi, I have two separate ezcontentobject’s identifiers in the same class, within the template I would like to show colour information and security info within separate areas using the identities to indicate which area to place the content.

At the moment all related object are shown within a single template area so would like to know how I’d go about filtering the ezcontentobject fetch so content can be presented within designated template areas.

Current code users:

{* Fetch all the related objects from the node that is being viewed *}
{def $right_column_link=fetch('content','related_objects',hash('object_id', $node.object.id, 'all_relations', true()))}

{* Foreach related teacher, show the attributes *}
{foreach $right_column_link as $content_object}
	<strong>{attribute_view_gui attribute=$content_object.main_node.data_map.name}</strong>
	{attribute_view_gui attribute=$content_object.main_node.data_map.content}

{/foreach}

{undef}

<i>http://www.brandnewdesigns.co.uk/eng/products/h2_ticket_flyer</i>

Ekkehard Dörre

Friday 27 July 2007 10:17:12 am

Hi,

look here, what you can do:

http://ez.no/doc/ez_publish/technical_manual/3_9/reference/modules/content/fetch_functions/related_objects

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing