fetch('content', 'trash_count', hash ('attribute_filter', array))
Name | Type | Description | Required |
---|---|---|---|
attribute_filter | mixed | A new parameter since eZ Publish 4.1. This enables you to run attribute filtering for trash items | No. |
An integer revealing the number of objects that are in the trash.
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.
For more information regarding the use of the "attribute_filter" parameter, please visit the following page.
{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.
fetch('content', 'trash_count', hash('attribute_filter', array(...)))</pre>
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.