fetch( 'section', 'object', hash( 'section_id', section_id ) )
Name | Type | Description | Required |
---|---|---|---|
section_id | integer | The ID number of the section that should be fetched. | Yes. |
An ezsection object or FALSE.
This function fetches an object that represents a section. The "section_id" parameter must be a valid section ID number. The function returns an ezsection object. If an invalid ID number is specified, the function will return FALSE.
{def $section=fetch( 'section', 'object', hash( 'section_id', 13 ) )} {$section.name|wash}
Outputs the name of section number 13.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.