Count rows in Drupal views plugin

Posted by Rimian on Stack Overflow See other posts from Stack Overflow or by Rimian
Published on 2010-05-10T06:00:28Z Indexed on 2010/05/10 6:04 UTC
Read the original article Hit count: 356

I've written myself a Drupal Views row plugin and I want to count the rows so I can do something with the output every Nth row.

I can do this in the plugin's preprocessor function but if it gets used more than once (in panels for example) I can't reset the counter to zero.

Can someone point me in the right direction here?

© Stack Overflow or respective owner

Related posts about drupal

Related posts about drupal-views