Community Documentation

Having a different nodes per page on the summary view

Last updated March 27, 2007. Created by merlinofchaos on November 2, 2006.
Edited by add1sun, ashtonium. Log in to edit this page.

An infrequent but relatively common issue I've run into with Views is that when showing teasers, a common number of posts per page is 10; but when showing the single lines from the summary, 25 is much more common. But Views doesn't let you change the page size in summary view mode.

Note: If you don't know what summary view mode is, this page is a summary (what happens when a view has an argument and the argument is not present), while this page is the view when an argument is present.

If you want to have more (or fewer, tho that's unlikely) summary lines, this code in your 'Arguments Handling Code' section:

if (!$args[0]) {
  $limit = 25;
}

Reference

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here