Fetch nodes with several locations - avoid duplication

Author Message

laurent le cadet

Thursday 25 October 2007 1:17:38 am

hi,

I have this situation :

Objects main nodes are in a folder and there is additionnal locations in a subtree (not for all nodes).
Some nodes can have several locations in this subtree.
I want to fetch the last 5 items published in the subtree but I want to avoid duplication of nodes which have several locations.
I can't use main_node_only because they are elsewhere.

Stuck!

Any hint.

Regards.

Laurent

Sebastiaan van der Vliet

Friday 02 November 2007 9:18:26 am

Hi Laurent,

This could probably be solved by using an extended attribute filter. Check out: extendedattributefilter.ini and http://ez.no/developer/contribs/template_plugins/objectrelationfilter. With the extended attribute filter it is possible to add SQL code to the standard query used for the fetch.

Best regards,
Sebastiaan

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

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