How to add the number of objects of a folder in a tree menu?

How to add the number of objects of a folder in a tree menu?

Monday 12 April 2004 10:01:54 pm - 1 reply

Modified on Monday 12 April 2004 10:03:09 pm by Jorge estévez

Author Message

Alex Jones

Tuesday 13 April 2004 6:21:52 am

You <i>fetch</i> the amount of objects using <i>list_count</i>. Example:

{let list_count=fetch('content','list_count',hash(parent_node_id,$node.node_id))}
{$list_count}
{/let}

This may need to be tweaked, but should be close to what you need. Just add it in the appropriate spot. The nice thing about using fetch is the flexibility it provides in filtering classes of objects, and even specific attributes of those classes.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

You must be logged in to post messages in this topic!

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