Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Status parameter for section object list

*Title: New 'status' parameter for 'object_list' and 'object_list_count' fetch functions of 'section' module.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.10/status_parameter_for_section_object_list.txt

*Title: New 'status' parameter for 'object_list' and 'object_list_count' fetch functions of 'section' module.

*Documentation:
Added new optional parameter 'status' to give possibility to fetch separately
archived (trashed) and published content-objects (or count of them) using 'object_list'
or 'object_list_count' fetch functions of 'section' module. Thus 'status' can be one of
following values: 'archived' or 'published'. Default is 'published'.
Examples:

This one will fetch all not more then 20 archived objects which belong to standard section (id=1):
{set $objects = fetch( 'section', 'object_list', hash( section_id, 1,
                                                       limit, 20,
                                                       offset, 3,
                                                       status, 'archived' ) )}

and one will fetch all objects published within media section (id=3):
{set $objects_count = fetch( 'section', 'object_list_count', hash( section_id, 3 ) )}

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors