ez.no / exponential / documentation / reference / data fetching / content / collected_info_count
fetch( 'content',
'collected_info_count',
hash( 'object_attribute_id', id, 'object_id', id, 'value', value ) )
| Name | Type | Description | Required |
|---|---|---|---|
| object_attribute_id | integer | Count values for this object attribute id | yes |
| object_id | integer | The id of the contentobject to count | yes |
| value | integer | Count only attributes containig this value | yes |
The collection count (integer)
Will count the number of times a certain value has been collected. This is used to e.g. count the number of times someone has selected a specific value of a poll.
{let count=fetch( 'content', 'collected_info_count', hash( 'object_attribute_id', 42, 'object_id', 20, 'value', 1 ) )} {$count} {/let}
Comments