ez.no / exponential / documentation / reference / data fetching / content / draft_version_list
fetch( 'content', 'draft_version_list', hash( 'offset', 0, 'limit', 10 ) )
| Name | Type | Description | Required |
|---|---|---|---|
| Offset | integer | start fetching from this offset | no |
| Limit | integer | fetch maximum this number of drafts | no |
A list of content object version objects.
Fetches the available drafts for the current user as an array of eZContentObjectVersion objects. You can specify offset and limit to fetch only parts of the result.
Fetch all versions and print the id and name of the drafts.
{let draft_list=fetch( 'content', 'draft_version_list' ) } {section var=draft loop=$draft_list} {$draft.id} {$draft.name} {/section} {/let}
Comments