Hi there,

I cannot get a view to show it's pager inside a Panel.

I have a view, which has the "Use pager" checked and "Items to display" set to 12. I have used the same settings under the Views Panels configuration (http://mysite/admin/panels/views). My "view type" is set to Page.
When the view is displayed alone, it shows its pager and I can browse through the pages if there are more than 12 nodes in the view.

I have added that view to a Panel Page. The problem is that the pager is not shown there. So even though I have more than 12 nodes in the view I cannot see them ;-(

Is this a BUG in the Panels module or I have missed some configuration option?

I am using Panels 2 Beta 2.

Thanks for your help!

CommentFileSizeAuthor
#2 panels-views-pager_id.patch920 bytesdropcube

Comments

dropcube’s picture

Version: 5.x-2.0-beta2 » 5.x-2.x-dev
Assigned: Unassigned » dropcube

Provide a Pager ID greater than 0, in either the panel-view general settings (admin/panels/views/edit/view-name) or in the specific content setting.

I will provide a patch to fix this issue.

dropcube’s picture

Status: Active » Needs review
StatusFileSize
new920 bytes

The attached patch fixes it by adding 1 to the pager ID.

At views module, the pager ID is decremented by one again order to have the IDs start at 0.

 * @param $use_pager
 *   If set, use a pager. Set this to the pager id you want it
 *   to use if you plan on using multiple pagers on a page. To go with the
 *   default setting, set to $view->use_pager. Note that the pager element
 *   id will be decremented in order to have the IDs start at 0. 
dropcube’s picture

Status: Needs review » Fixed

Fixed.

kirilius’s picture

Thanks a lot!

merlinofchaos’s picture

I'm sorry for not committing this patch individually so you could get CVS commit log credit. :/

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

I'm sorry but this fix doesn't seems to correct the problem. On my site I can't see pager inside panels.

Anonymous’s picture

I'm very sorry for the previous - as you may think the mistake was in me. I forgot to check the pager in The panel view. Everything is ok now.

usapmaster’s picture

try to assign pager ID when adding the block in the content under panel. I was having the same problem and then i put "1" under pager ID (1, since this is my first and still trying to figure out drupal), and it worked. Goodluck!