Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
block displays
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2009 at 09:55 UTC
Updated:
26 Oct 2010 at 10:11 UTC
Jump to comment: Most recent
Comments
Comment #1
jibort commentedI have the same problem. Do you solved that? thanks.
Comment #2
dawehnerThis is not possible at the moment.
Here is a example handler which does this.
but this is really hacky.
Comment #4
FreddieK commentedsubscribe.
Comment #5
Anonymous (not verified) commentedHello
I have the same problem. When I click on a link from the second page of the pager, the content opens, but the pager jumps back to page 1.
So here's what I have. I have a news content type where I show a views block. I use the Viewfield module to show the views block on the news content page. The views block shows a title ( links to node ) and date, Style - Unformatted, StyleRow style - Fields, Use AJAX - Yes, Use pager - Mini, Items to display - 5. So far so good.
Now lets say I have 15 news pages, this will give me three pagination pages in the views block. If I go to page 2 of the pagination and click on News 8, News 8 will open, but the pagination in the views block will jump back to page 1. What we would like to have is that the pagination stays on page 2.
If you check the html source of News 8 you'll see that there's a class="active" on the link item of News 8, which is good since we need some kind of reference in the views block. We need some kind of checkbox in the User pager setting that says "Show pagination page with active item", so when opening News 8 the paginator in views block will automatically jump to page 2.
This sounds easy but I guess it's not since we don't have this option yet. What we have in this example are 15 items, and views show only 5 at once, so views takes the first 5 items and shows them. What we need is that views checks all 15 items, searches for the active item and then according to this shows the pagination page. In smaller and simple cases this is would be o.k. but when you have 400 items to check for an active item, I guess this would slow things down on the website.
The views scrollable module kinda works this way, it shows all items and knows where the active item is so it scrolls down to the active item. This is what we need except we don't need things to be scrollable, we need this with pagination.
I think we would need the class="active" on the parent div element of the active item. In this case it would be
Is it possible to add such an option to views or are there some limitations which makes this impossible to accomplish ?