Global view result counter doesn't work when exporting, shows 1 in every row

Created on 2 March 2023, about 2 years ago

Problem/Motivation

When I export view with views data export and use the field "Global: View Result Counter", it only shows the result 1 in every row.
I stated this also in https://www.drupal.org/project/views/issues/988490 🐛 Global view result counter doesn't work when using table style Fixed , there it is stated to be solved, but not for render export I think.

Steps to reproduce

Drupal 7, latest Views 3.dev, latest Views data export.dev, build view with Export tab and field Global: Views Result Counter.
Result only 1 in every row, expected 1,2,3, etc...

Proposed resolution

Solution like already build for Drupal 8/10: https://www.drupal.org/project/drupal/issues/2903924 📌 Fix for global view counter Needs work , https://www.drupal.org/files/issues/2019-08-29/2903924-14.patch
and https://www.drupal.org/project/drupal/issues/3063180#comment-14112308
But not for Drupal 7 implemented

Remaining tasks

How to implement this in Views 7? I need this for migration to Drupal 10. Thanks!

Or may be I can build a custom field to handle this? Any one had done this, and want to share how?

Thanks in advance! Greetings,

🐛 Bug report
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇳🇱Netherlands Summit

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

Comments & Activities

Production build 0.71.5 2024