Fetch contentlists and distinct

Fetch contentlists and distinct

Thursday 21 August 2008 1:25:35 pm - 1 reply

Author Message

Børge Warvik

Thursday 21 August 2008 2:01:23 pm

Problem solved.


{def $referencerelatedobjects=array()}
{def $uniquerelatedobjects=array()}
{foreach $relatedobjects as $object}
	{if $referencerelatedobjects|contains($object.contentobject_id)|not()}
		{set $uniquerelatedobjects=append($uniquerelatedobjects, $object)}
		{set $referencerelatedobjects=append($referencerelatedobjects, $object.contentobject_id)*}
	{/if}
{/foreach}


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.