ez.no / exponential / documentation / reference / data fetching / content / contentobject_attributes
fetch( 'content', 'contentobject_attributes', hash( 'version', version, [ 'language_code', language ] ) )
| Name | Type | Description | Required |
|---|---|---|---|
| version | object | The content version object to fetch attributes from | yes |
| language_code | string | The translation to fetch attributes from | no |
a list of ezcontentobjectattribute objects
{* fetch object with id 14 *} {let object=fetch( 'content', 'object', hash( 'object_id', 14) )} {* fetch all versions *} {let version_list=fetch( 'content', 'version_list', hash( 'contentobject', $object ) )} {section var=version loop=$version_list} {* for each version fetch the attributes and print the data type string *} {let attribute_list=fetch( 'content', 'contentobject_attributes', hash( 'version', $version ) )} {section var=attribute loop=$attribute_list} {$attribute.data_type_string} {/section} {/let} <br /> {/section} {/let} {/let}
Comments