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.

object

Summary

Fetches a content object (specified by an ID number).

Usage

fetch( 'content', 'object', hash( 'object_id', object_id ) )

Parameters

NameTypeDescriptionRequired
object_id integer The ID number of the target object. Yes.

Returns

An ezcontentobject object or FALSE.

Description

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.

Examples

Example 1

{def $object=fetch( 'content', 'object', hash( 'object_id', 13 ) )}
{$object.name|wash}

Outputs the name of object number 13.

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

Balazs Halasy (29/04/2005 10:54 am)


Comments

There are no comments.