2

Is there a way to display the same view with different pager configurations? For example have the same set up with 3 items for the homepage and full paged for a news list page? Thanks!

1

If you are using Panels, you can place "Content panes" with different configurations for each instance.

I've found this very useful when you want a news listing with title and image in one place and just titles in another and different number of items displayed but have the same view generate the list (for easy maintainability and overview).

I've attached an image below where you can see the pager settings set to be configurable in the View configuration. You'll need to have Panels and Views content panes (shipped with ctools) enabled to create the display type "Content pane" from Views.

Pager settings for a Views content pane

If you use Content panes there are actually more settings that can be overridden in each instance of the View it's display. Here's a screenshot of what more that can be set to be configurable.

Allowed settings for a Views content pane

| improve this answer | |
  • Yes i am using panels. Just missed the "Allow Settings" option. The objective is to show 3 news on the frontpage and 12 items with a pager on a news list page. Just trying to figure out hot to hide the pager on the frontpage without using display: none. Thank you. Problem fixed :) – Niebes Aug 1 '13 at 21:17
1

I dont think its possible, you can achieve this by adding another page/block display to an existing view and specify the pager values accordingly.

enter image description here

As Ursula said, When you change your pager on the second display, do not forget to change the 'for' pulldown menu on the modal window from 'all displays' to 'this page (overwrite)'. Otherwise, you changed the pager for all displays.

| improve this answer | |
  • 3
    When you change your pager on the second display, do not forget to change the 'for' pulldown menu on the modal window from 'all displays' to 'this page (overwrite)'. Otherwise, you changed the pager for all displays. – Ursula Jul 30 '13 at 5:48
  • @Ursula yes youre right my +1 – niksmac Jul 30 '13 at 7:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.