Forums / Setup & design / How to count the number of node in my site?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to count the number of node in my site?

Author Message

Lydie Soler

Tuesday 31 January 2006 5:47:24 am

Hi,

I would like to calculate the number of node I have in my site.

I have found this:


{let list_count=fetch('content','list_count',hash(parent_node_id,2))}


{$list_count}


{/let}

but it only counts the node contains in the node number 2. What do I have to change?

Thnaks a lot

Kristof Coomans

Tuesday 31 January 2006 6:51:00 am

Try the 'tree_count' content fetch function instead of 'list_count':

{let tree_count=fetch('content','tree_count',hash(parent_node_id,2))}
{$tree_count}
{/let}

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Lydie Soler

Tuesday 31 January 2006 7:05:55 am

that's perfect! thanks a lot