Problem/Motivation

When using ajax views the dynamic views reference setting plugins do not apply their changes to the results. For example when you enable a pager for the view, the code in the field formatter does not run.

Proposed resolution

If we want to change ajax views, we need to implement a regular view hook and somehow let views know that it is embedded in a viewsreference field.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 2923147-2.patch4.56 KBseanB
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

seanB created an issue. See original summary.

seanB’s picture

Status: Active » Needs review
FileSize
4.56 KB

Here is a patch to fix the issue. We need to pass the data from the formatter to views and pass the data from views to the ajax route. Needed to jump through some hoops to get it done but it works!

  • seanB committed e93893c on 8.x-2.x
    Issue #2923147 by seanB: Ajax views break when using pagination
    
seanB’s picture

Status: Needs review » Fixed

Fixed in the latest dev.

  • seanB committed 64060a9 on 8.x-2.x
    Issue #2923147 by seanB: Ajax views break when using pagination (extra...

Status: Fixed » Closed (fixed)

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