Count locations of a node

Author Message

Joris Lint

Tuesday 02 December 2003 6:17:17 am

How can I fetch the amount of locations of a node?
Can I use fetch for this?

Jo Henrik Endrerud

Tuesday 02 December 2003 6:40:31 am

A node is a spesific location in the tree, so it will never have more than one location. What you probably meant to ask is number of locations for an object placed on a spesific node (i.e. the assigned nodes to an object).

You can get all assigned nodes of an object like this:

{$node.object.assigned_nodes}

You can check http://www.ez.no/developer/ez_publish_3/documentation/ez_publish_basics/content_management_in_ez_publish/objects_nodes_and_the_content_node_tree for more information about the node/object concept.

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

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