'Is there any attribute or other way to find out, if an object has more than one locations?'
The assigned nodes is available on the object.
Here is an example code that lists all the paths to the assigned nodes:
{foreach $node.object.assigned_nodes as $assignednode} {$assignednode.path_identification_string} <br /> {/foreach}<span class="line"></span></pre>
The $node variable has the following available information:
http://ez.no/doc/ez_publish/techn...ence/objects/ezcontentobjecttreenode
The $node.object:
http://ez.no/doc/ez_publish/techn..._8/reference/objects/ezcontentobject
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/techn...modules/content/fetch_functions/list
Reply, "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)."
Article provided by eZpedia
All text is available under the terms of the GNU Free Documentation License
Powered by eZ Publish 6.0.2stable
Hosted by USA eZ Publish Community Partner : Brookins Consulting