View Result Counter is broken on exports that use batching

Created on 10 May 2023, over 1 year ago

Problem/Motivation

I try to export a lot of rows with a view. The view looks correct on screen, and the row-counter gives nicelly first row 1, second row 2, third row 3...etc
But when I try to export the csv through VBO-export, the rowcounter stays for every row on 1
On drupal 8 there is same sort of problem, see issue: https://www.drupal.org/project/vbo_export/issues/3184888 🐛 View Result Counter is broken on exports that use batching Active

I try to export the view through csv for migrating the content (1000+ weblinks) to Drupal 10. Please help!

Steps to reproduce

Build a view with field: Global: View result counter (Counter) or Global: PHP field with output code:

<?php $rownumber = $view->row_index + 1;  ?>
<?php print 'nr: "' . $rownumber. '"' ; ?>

Proposed resolution

Two solutions: or change vbo_export with a patch which contains correct numbering, or build a new field handler (bettercounter), which counts the rows correct. In this issue there is a Drupal 8 solution: https://www.drupal.org/project/vbo_export/issues/3184888 🐛 View Result Counter is broken on exports that use batching Active and here I am trying (I am not a programmer:( a Drupal 7 solution: https://stackoverflow.com/questions/76211445/try-better-counter-for-view...

Remaining tasks

Building a correct solution

Thanks a lot in advance for your reply,

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

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