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