This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

trash_count

Summary

Fetches the number of objects that are in the trash.

Usage

fetch('content', 'trash_count' )

Returns

An integer revealing the number of objects that are in the trash.

Description

This function returns the number of objects (as an integer) that are in the trash. An object is considered to be in the trash if its status field is set to archived.

Examples

Example 1

{def $trash_count=fetch('content', 'trash_count' )}
There are {$trash_count} objects in the trash.

Outputs the number of items that are in the trash.

Balazs Halasy (06/02/2004 1:13 pm)

Balazs Halasy (29/04/2005 11:00 am)


Comments

There are no comments.