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.

eZ debug

Timing: Jan 31 2025 00:26:35
Script start
Timing: Jan 31 2025 00:26:35
Module start 'layout'
Timing: Jan 31 2025 00:26:35
Module start 'content'
Timing: Jan 31 2025 00:26:35
Module end 'content'
Timing: Jan 31 2025 00:26:35
Script end

Main resources:

Total runtime0.0222 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1328151.2109
Module start 'layout' 0.00480.0037 739.3438220.6875
Module start 'content' 0.00850.0122 960.0313997.6797
Module end 'content' 0.02070.0015 1,957.710929.9922
Script end 0.0222  1,987.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.2597140.0002
Check MTime0.00104.6708140.0001
Mysql Total
Database connection0.00062.680110.0006
Mysqli_queries0.00229.999930.0007
Looping result0.00000.053610.0000
Template Total0.00114.910.0011
Template load0.00093.899010.0009
Template processing0.00020.930510.0002
Override
Cache load0.00062.604010.0006
General
dbfile0.00104.709480.0001
String conversion0.00000.037540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs