How can I display only the final figure of the calculation?

Created on 18 December 2023, 11 months ago

Problem/Motivation

In the views-view-unformatted template, I wanted to output the final number after adding my numeric fields, but the value of the field substitutes all the fields for me, as if showing what exactly it adds. But I don't need it at all, I need a figure based on the result of addition

The code to output in the template views-view-unformatted:

{{ row.content['#view'].style_plugin.render_tokens[ loop.index0 ]['{{ field_cumulative_field }}'] }}

Proposed resolution

Add the ability to output only the total value to the field (i.e. it will output only the last line of all fields, where the total number is stored)

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇷🇺Russia mr.pomelov

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

Comments & Activities

Production build 0.71.5 2024