Views with attachment - How do I exclude pagination offset on every page but the first? I have a view with an attached view to display the first row with different fields and markup. This works perfectly except for when you start using the pagination.

When I press another page (in the pagination) to load the next group of rows, I don't want either the attached view nor the pager offset.

I've seen some solutions which rely on showing rendered nodes with a different view mode for the first row. I would very much like to find a solution which is compatible with fields instead.

My main problem is that when you've started going through the pages, the first row is always skipped. Even though that is the expected behaviour, it's not how I want it to be.



Here's the pager settings for the default display and the attachment display.

Pager settings

Default display:


Attachment display:




The rendered view

Here's how the rows are rendered on the first and the second page.
The blue box represents all rows (in my case only 1) from the attachment display and the red boxes represents the rows from the default display. The number in the boxes is the row id.

Please note how row 9 is never shown.

First page:


Second page:
There is a workaround described here: https://drupal.org/comment/4109006#comment-4109006. It is for D6 but as far as I can tell it should work in D7 too. The approach seems a little odd and I didn't try it out on my own, but it might solve your problem.