Number of views in the widget (full mode)

Dadparvar

Well-known member
Edit this template: xfrm_resource_list_macros

Find this: <xf:if is="$resource.isDownloadable()">

Add this code above that:
Code:
<dl class="pairs pairs--justified">
      <dt>{{ phrase('views') }}</dt>
      <dd>{{ max($resource.view_count, $resource.download_count, 1)|number }}</dd>
</dl>
It's better to do it using Template Modification system, so that you don't lose it in future if that template was updated during upgrade.
 
Last edited:

ru55ian

Member
Edit this template: xfrm_resource_list_macros

Find this: <xf:if is="$resource.isDownloadable()">

Add this code above that:
Code:
<dl class="pairs pairs--justified">
      <dt>{{ phrase('views') }}</dt>
      <dd>{{ max($resource.view_count, $resource.download_count, 1)|number }}</dd>
</dl>
It's better to do it using Template Modification system, so that you don't lose it in future if that template was updated during upgrade.
You are awesome !!! thank you
 
Top