fetch( 'content', 'version', hash( 'object_id', object_id, 'version_id', version_id ) )
Name | Type | Description | Required |
---|---|---|---|
object_id | integer | The ID number of the target object. | Yes. |
version_id | integer | The version number that should be fetched. | Yes. |
An ezcontentobjectversion object or FALSE.
This function fetches a specific version of a content object. Both the ID number of the target object and the number of the desired version must be specified using the "object_id" and the "version_id" parameters. The function returns an ezcontentobjectversion object. It will return FALSE if invalid parameters have been provided or if the current user has insufficient permissions.
{def $version=fetch( 'content', 'version', hash( 'object_id', 13, 'version_id', 3 ) )} Name of version: {$version.name}
Outputs the name of version number 3 for 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.