When I embed a view field view in a view, the parent view pagination links are gone.

This happens even if I have the view field excluded from view.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damiankloip’s picture

Thanks for your in depth summary ;)

I'm not sure exactly why right now (Will look into it) but if you turn off the pagination in the child view, the pagination in the parent view will work.

I'm still not sure if we can have both....

yannisc’s picture

I confirm that pagination worked after I removed pagination from child view.

damiankloip’s picture

Good :), Like I said, I will ideally have a look at a fix for this issue (If it's possible).

damiankloip’s picture

Priority: Major » Normal

Not major

scottrigby’s picture

Title: Parent view pagination is gone. » Allow pagers to work independently

Marking #1508812: Allow AJAX-enabled pagers on multiple child views to work independently as duplicate.

Quickly noting that the other issue suggests one workaround is to AJAX-enable both parent and child pagers (as long as there are not multiple child pagers).

damiankloip’s picture

.

robmc’s picture

Check to make sure pager IDs are all set to unique values for all views being displayed by the Views Field Views field - admin/structure/views/nojs/display/YOUR_VIEW_NAME/page/pager_options. If you have a view set to 'display all items' it will have an ID of 0 set by default -- this is the one that got me.

damiankloip’s picture

Priority: Normal » Major
dawehner’s picture

Status: Active » Needs review
FileSize
2.54 KB

So here is a patch for that.

The basic ID is to count up pager id's so they are all unique and set this pager id before initalizing the actual view.

dawehner’s picture

Making this working with the aggregation feature seems to be harder then the actual issue, so i will have a look for that later.

damiankloip’s picture

Status: Needs review » Active

Committed #9 to 7.x-1.x! Leaving open for now for the aggregation.

http://drupalcode.org/project/views_field_view.git/commit/334ab9d

dawehner’s picture

Status: Active » Needs review
FileSize
2.96 KB

Yeah i agree the option is not really required, it should be done by default.

dawehner’s picture

Check whether the childview has a pager.

damiankloip’s picture

Status: Needs review » Active

Committed and pushed to 7.x-1.x!

damiankloip’s picture

Status: Active » Fixed

Let's not do this for aggregation.

Status: Fixed » Closed (fixed)

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

builderShawn’s picture

Sorry to reopen this but I am experiencing a similar issue with a custom pager "Views load more" in which I am not positive if the issue is actually with this module or the other. To the point it appears that the load more pager js is being ignored in favor of the default pager action. Any thoughts? Thanks for the help!

tterranigma’s picture

Issue summary: View changes
Status: Closed (fixed) » Active

I am reopening this issue since I am having trouble displaying more than one paginations.

I use page_manager to output views content panes. I have a main view that provides the title and some other fields and then three child views as described below:

One content pane outputs articles with a pagination id of 1.
A second content pane outputs a list of links to the above articles with a pagination id of 2.
A third content pane outputs search results with a pagination id of 3 (with views_load_more module).
What happens is that only the first pagination is loaded and it overwrites the pagination of all the other modules.
In the case of views_load_more module, the "pagination" (simply a utton with the text "Load more") is not overwritten but still does not work.

I cannot make it work regardless of using ajax or not.

Note that if I make the search results view to use ajax and autosubmit, then the correct pagination is returned together with the search results.

tterranigma’s picture