translations
Beware: since this fetch takes a contentobjectattribute id, it will return results for one specific language only - because the translated attribute has a different id.
Depending on how you construct your code, viewing the german object may return only the german results, for example.
$2c,
*pike
Comments (1 historical)
Written by readers of the earlier documentation sites, kept as they were.
Re: translations
Vids ·
Hi,
I know that $contentobject_attribute_id is difrent for each translation, but please let me know if there is there any other way to get results from all languages without changing the code:
{def $attribute=$contentobject_attribute_item
$contentobject_attribute_id=cond( $attribute|get_class|eq( 'ezinformationcollectionattribute' ),$attribute.contentobject_attribute_id,
$attribute|get_class|eq( 'ezcontentobjectattribute' ),$attribute.id )
$contentobject_attribute=cond( $attribute|get_class|eq( 'ezinformationcollectionattribute' ),$attribute.contentobject_attribute,
$attribute|get_class|eq( 'ezcontentobjectattribute' ),$attribute )
$total_count=fetch( 'content', 'collected_info_count', hash( 'object_attribute_id', $contentobject_attribute_id ) )
$item_counts=fetch( 'content', 'collected_info_count_list', hash( 'object_attribute_id', $contentobject_attribute_id ) )}
Vids