ez.no / exponential / documentation / reference / data fetching / content / non_translation_list
fetch( 'content', 'non_translation_list', hash( 'object_id', id, 'version', version )
| Name | Type | Description | Required |
|---|---|---|---|
| object_id | integer | the object id | yes |
| version | integer | version number | yes |
A list of locale objects
Will fetch a list of locales the object can be translated into. It will not include the locales which the object is already translated into.
Fetch the locales which object id 42 can also be translated into.
{let can_translate_to=fetch( 'content', 'non_translation_list', hash( 'object_id', 42, 'version', 1 ) )} This object can also be translated into: {section var=locale loop=$can_translate_to} {$locale.language_name} {delimiter},{/delimiter} {/section} {/let}
Comments