ObjectRelationFilter: multiple selection of same objects

Author Message

Peter Meyer-Delius

Monday 29 October 2007 2:46:46 am

I am building a Document Management System where Dokuments are shown in Folders when they both have the same Keywords (Object-Relations to Self-made Keyword-Objects)

{def $documents=fetch( content, list, hash( parent_node_id, $parent_nodes,
class_filter_type, include,
class_filter_array, array( 'file'),
'extended_attribute_filter', hash('id', 'ObjectRelationFilter', 'params', array ('and',351,array(2017,2042,2097)))
)
)
}

The first 'and' is there because sometimes the users have keywords too that will be merged with the keywords of the folder.

Problem: Files, which have the Objectrelation to the same Keywords are fetched twice or threefoldly. I need a kind of "distinct" in the select-statement.

Any Ideas anybody?

kind regards,

peter

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