In the Views module you can set the number of nodes you want to allow to be displayed in the view you are creating. However, the limit seems to be 99. At least, I can't enter a three digit number in the "Nodes to Display" field. When viewing Zack Rosens Gmap/views mashup, I observed that he entered the number 400 in the "Nodes to display" field, so I know it can be done. How is it done?

Roger

Comments

robertdouglass’s picture

I would also like to have an option where there is no limit (blank, or -1). Perhaps you could open a feature request on the views project?

- Robert Douglass

-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress

KSA213755’s picture

In my sandbox where I have the 4.7 version of views installed I changed '#size'=>2 and '#maxlength'=>2 (lines 756 & 757) from a value of 2 to a value of 3 and it worked fine. Here's the section of code that deals with the nodes to display settings:

$form['page-info']['nodes_per_page'] = array(
    '#type' => 'textfield',
    '#title' => t('Nodes per Page'),
    '#default_value' => $view->nodes_per_page,
    '#size' => 2,
    '#maxlength' => 2,
    '#description' => t('The number of nodes to display per page. If 0 no nodes will be displayed. If not using a pager, this will be the maximum number of nodes in the list.'),
    '#attributes' => NULL,
    '#required' => true,

I checked the current CVS version and the code is the same.

For kicks I tried changing the size and length values to 4. I edited my view and put in the Nodes to display a value of 4000. It worked, and only took about 5 or 6 seconds to pull in all the nodes in a table view that I had set up.

Roger

KSA213755’s picture