Hi!
I need to know whether an object has reverse related objects
I found this code:
{def $objects=fetch( 'content', 'reverse_related_objects',
hash( 'object_id', $node_id ) )
$counter = 0}

{foreach $objects as $object}
{set $counter=$counter+1}
{/foreach}
this here:
http://doc.ez.no/eZ-Publish/Techn...ch-functions/reverse_related_objects
In this way I "count" the number of reverse related objects, but I'm sure there 
is another way, because I just want to know if the object has reverse objects 
related or not, I think it's a waste of resources. 

Thanks 

-- 
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public

Reply via email to