How to obtain the statistical count value of the node

Created on 29 July 2024, 4 months ago
Updated 1 September 2024, 3 months ago

Hello,

After enabling statistics, how can I obtain its value through twig_tweak or other methods? It defaults to being displayed at the bottom of the article along with the link field. However, I would like to use this value and freely place it elsewhere, such as below the title or above the body of the text.

I tried these, but they didn't produce any output:
{{ drupal_field('links','node',nid) }}
{{ drupal_field('statistics','node',nid) }}

💬 Support request
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024