Actually. In your case, you might be able to use the "main_node_only" parameter to the "list" or "tree" fetch to only return the main node of your nodes.
See here: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list
The main_node_only attribute would not work with the particular problem logic I have: I wanted to exclude all "Main Nodes" from the fetch, whose objects are encapsulated by another node (different location).
You must be logged in to post messages in this topic!