Would it be possible to increase the value limit for the number of nodes to display on a page view? Currently the largest value that can be entered is 99. This seems too restictive, but maybe there's a solid reason for that restriction. Also, robertDouglass was wondering if a setting could be created that would allow an unlimited number of nodes to display. (ref our conversation)

Comments

merlinofchaos’s picture

99 is too restrictive; if you need more, alter the database slightly by making the nodes_per_page column bigger. I probably ought to just patch that.

Unless Im mistaken, you should be able to enter 0 for no restrictions.

KSA213755’s picture

According to the help text on the page view input form, a value of 0 will result in no nodes being displayed. I tried it and there weren't any nodes displayed, just an error message about the value being 0.

If I understand correctly, the entry for Type in nodes_per_page of the view_view table should be changed from int(2) to int(3) to allow up to 999 nodes; int(4) to allow up to 9999 nodes, etc. Lines 756 & 757 (I put the code snippet below) of the views_ui table also have to be edited to permit insertion of a larger number in the form. I tried it out and it works just fine. Thanks.

  $form['page-info']['nodes_per_page'] = array(
    '#type' => 'textfield',
    '#title' => t('Nodes per Page'),
    '#default_value' => $view->nodes_per_page,
    '#size' => 3,
    '#maxlength' => 3,
    '#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,
  );
merlinofchaos’s picture

Status: Active » Fixed

fixed, checked in

Anonymous’s picture

Status: Fixed » Closed (fixed)