Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

object_list_count

Summary

Fetches the number of objects that belong to certain section.

Usage

fetch( 'section', 'object_list_count', hash( 'section_id', section_id ) )

Parameters

NameTypeDescriptionRequired
section_id integer The ID number of the target section. Yes.

Returns

The number of objects (as an integer) that belong to the section.

Description

This function counts the number of objects that belong to a section specified by the "section_id" parameter. The function returns the count as an integer.

Examples

Example 1

{def $count=fetch( 'section', 'object_list_count',
                   hash( 'section_id', 13 ) )}
 
There are {$count} number of objects in section number 13.

Outputs the number of objects that belong to section number 13.

Balazs Halasy (04/10/2004 1:45 pm)

Balazs Halasy (29/04/2005 9:12 am)


Comments

There are no comments.