Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#13 | views_field_view-1429432-13.patch | 2.34 KB | dawehner |
#12 | views_field_view-1429432-12.patch | 2.96 KB | dawehner |
#9 | views_field_view-1429432-9.patch | 2.54 KB | dawehner |
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedThanks 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....
Comment #2
yannisc CreditAttribution: yannisc commentedI confirm that pagination worked after I removed pagination from child view.
Comment #3
damiankloip CreditAttribution: damiankloip commentedGood :), Like I said, I will ideally have a look at a fix for this issue (If it's possible).
Comment #4
damiankloip CreditAttribution: damiankloip commentedNot major
Comment #5
scottrigbyMarking #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).
Comment #6
damiankloip CreditAttribution: damiankloip commented.
Comment #7
robmc CreditAttribution: robmc commentedCheck 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.
Comment #8
damiankloip CreditAttribution: damiankloip commentedComment #9
dawehnerSo 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.
Comment #10
dawehnerMaking this working with the aggregation feature seems to be harder then the actual issue, so i will have a look for that later.
Comment #11
damiankloip CreditAttribution: damiankloip commentedCommitted #9 to 7.x-1.x! Leaving open for now for the aggregation.
http://drupalcode.org/project/views_field_view.git/commit/334ab9d
Comment #12
dawehnerYeah i agree the option is not really required, it should be done by default.
Comment #13
dawehnerCheck whether the childview has a pager.
Comment #14
damiankloip CreditAttribution: damiankloip commentedCommitted and pushed to 7.x-1.x!
Comment #15
damiankloip CreditAttribution: damiankloip commentedLet's not do this for aggregation.
Comment #17
builderShawn CreditAttribution: builderShawn commentedSorry 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!
Comment #18
tterranigma CreditAttribution: tterranigma commentedI 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.
Comment #19
tterranigma CreditAttribution: tterranigma commented