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

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