Views Data Export Not working for current page I am using View Data Export to export users in csv.
I am using a page view. Fields, User Name, Email. Same fields in Data Export display type and filters.



In Data Export display, using Parent Sort Checked.

Here are the page and Data Export Display using same settings.



Data Export Display.



On Page Display I am showing 5 users, with full pager. On Data Export Display I am using 5 as well.

When I change page, goto next page on /export-user, CSV Icon cant export users other than first 5 no matter on which page I am.



So the csv Icon shows the same link on each page.

Any idea if I am missing something.
It seems issues with the module itself. You can just use view's template file or hook_views_pre_render() rather than attachment.

Append a link after views content or in footer called Export CSV.

Your code will be like this :

print l('Export CSV', 'userexport.csv', array('query' =&gt; array('page' =&gt; $_GET['page']));