I need views to append new data only on autorefresh request but when user submit a filter I need views to replace existing data with filter result. The attached patch is supposed to implement it. Most of this work is from melsawy (http://drupal.org/user/154546).

Comments

jonhattan’s picture

I had a conflict implementing autorefresh and http://drupal.org/project/views_load_more that I "fixed" by settings a higher weight to views_load_more in {system} table.

So this proposal seems a plausible solution for my usecase also.

infojunkie’s picture

Category: feature » bug
Status: Needs review » Fixed

Thanks for the patch. Committed to latest dev.

@jonhattan, can you please confirm that this fixes your integration with views_load_more?

caiosba’s picture

Just FYI, I can use views_auto_refresh with views_load_more (dev version).

infojunkie’s picture

Thanks for the confirmation Caio!

jonhattan’s picture

I also confirm!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

infojunkie’s picture

Project: Views Hacks » Views Auto-Refresh
Component: Views Auto-Refresh » Code