Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Global counter stopped working it's only returned a 1 for each entry.
I use the XML Export (Views Bonus) and the Book Hierarchy sorting.
If I change the line 38 of views_handler_field_counter.inc by:
//$count += $this->view->row_index + 1;
$count += array_search($values, $this->view->result) + 1;
It's work perfect.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1188248-rss-row_index.patch | 775 bytes | dawehner |
Comments
Comment #1
dawehnerBut this is not how it should work.
Can you please try out the 6.x-2.x-dev version and switch to another style?
If it works on "fields" style please move the issue to views bonus pack.
Comment #2
kobee CreditAttribution: kobee commentedYes, you're right.
It's work on the page display, but not on the Feed (Since we can't edit the fields without the bonus pack).
And on feeds, it's automatically "Node" style.
Thanks.
Comment #3
dawehnerThat's indeed a bug of views.
Commited to 7.x-3.x, 6.x-3.x, 6.x-2.x