Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to let the user pick how many items are gonna be displayed on the page. Therefore, I need to display a field with a select or something.

Is there a way to make that directly through the UI, not with coding?

share|improve this question
up vote 8 down vote accepted

Yes, you can do that with Views.

In the pager settings for the View, select to expose the number of items to the user.

enter image description here

Make sure the textfield with available items per page options includes the default number of items per page.

share|improve this answer
    
Is this in Drupal 7 ? When I click on the pager options I have only a choice on how what to display (all items, a defined number of item, etc.). If I choose one and then apply, I can only pick the number of items to display and at what number to start. link – Ebpo Jan 18 '13 at 13:59
    
Yes, that's in Drupal 7, choose which type of pager ( e.g full ), then after that you can set the pager options. – David Thomas Jan 18 '13 at 23:31
    
I had not picked the right option. Thanks a lot for your time! – Ebpo Jan 22 '13 at 21:30

Don't Forget in your View under 'Advanced' tab to change value of "Use AJAX" item to "Yes" Otherwise it doesn't show view exposed pager

thanx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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