ez.no / exponential / documentation / reference / data fetching / content / version_list
fetch( 'content', 'version_list', hash( 'contentobject', object,
['offset', offset,]
['limit', limit ] ) )
| Name | Type | Description | Required |
|---|---|---|---|
| contentobject | object | Content object to fetch versions from. | Yes. |
| offset | integer | Offset to start fetching from. | No. |
| limit | integer | Max number of versions to fetch. | No. |
An array of ezcontentobjectversion objects
{* Fetch an object. *} {let object=fetch( 'content', 'object', hash( 'object_id', 14 ) )} {* Fetch all versions of this object. *} {let version_list=fetch( 'content', 'version_list', hash( 'contentobject', $object ) )} {* Loop through all versions and display their name. *} {section var=version loop=$version_list} {$version.name} {/section} {/let} {/let}
Comments