fetch( 'content', 'object', hash( 'object_id', object_id ) )
Name | Type | Description | Required |
---|---|---|---|
object_id | integer | The ID number of the target object. | Yes. |
An ezcontentobject object or FALSE.
This function fetches a content object. The ID number of the object must be specified using the "object_id" parameter. The function returns an ezcontentobject object. It will return FALSE if a non-existing ID number is provided or if an error occurs.
{def $object=fetch( 'content', 'object', hash( 'object_id', 13 ) )} {$object.name|wash}
Outputs the name of object 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.