Forums / Setup & design / duplicated nodes in result

duplicated nodes in result

Author Message

Albert Berenguer

Thursday 15 January 2004 11:23:58 am

hi all,
i've got the following code to fetch and sort some nodes in a folder:

{let children=fetch('content','list',
hash(parent_node_id, $node.node_id,
sort_by, array(array('attribute',false(),647))))}

the problem is that in the result every node appears twice, i mean it is duplicated. How can I solve this, so every node only appears once in the resulting array?

thanks in advance
Berto

Paul Borgermans

Thursday 15 January 2004 11:46:12 am

Related to?

http://ez.no/developer/ez_publish_3/bug_reports/fetching_children_with_attribute_filter_ignores_translations

or

http://ez.no/developer/ez_publish_3/bug_reports/sort_by_attribute_translation_duplicates_bug_incl_quickfix

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Albert Berenguer

Friday 16 January 2004 8:19:15 am

thanks!
I used both bugfixes and it worked!
thanks again!

Berto

Albert Berenguer

Friday 16 January 2004 10:47:12 am

Hi again,
I have another question now: is it possible to sort by an attribute but using its name (the indentifier, in class definition) instead of its number?
I have some classes with a field with the same name and I wanted to list them separately but using the same template. If I use the code above I will have to make different templates and change the attribute number in each one.

Hope I explained fine :)
Thanks in advance

-Berto-