I am using views_pre_render hook to edit the result of the view.
My view has a pager system and so the $view->result
doesn't give the full list of results. If the pager is set to 10 items, only 10 is obtained in the pre_render.
Is there any way I can get the whole set of results?
Any help is much appreciated.
hook_views_post_execute()
Also gives only the per page set of values.
thanks.
Is there any way I can get the whole set of results?
well... you would have to turn off the pager or manually query the DB to get all the results which would make the whole point of having a pager pointless. Anyhow, mind tell in us why do you need all the results?Isn't there any way to get the full list with the pager?
there isn't. The whole point of a pager is that it queries the DB and only retrieves x amount of records, this is for performance reasons. Example: If there is 10 million records querying everything would be really slow.Does this mean that that the view queries every time and gets only the current page values and not the full set of values?
Correct, as long as there is a pager, it will only get the current page values.