Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

This module alters the "Items per page" (aka "Items per block") setting for Views blocks within the Drupal administration interface. Instead of a dropdown select list with predefined options (e.g., 5, 10, 20, 40), it changes the input type to a number field. This allows site administrators to enter any desired numeric value for the number of items displayed per block, providing greater flexibility beyond the default choices.

FEATURES

  • Converts the Items per page/Items per block select field to a number input field for Views blocks.
  • Allows administrators to specify custom numeric values for items per page.
  • Sets a minimum value of 1 for the number input.

REQUIREMENTS

Drupal 10.x or 11.x

INSTALLATION

Install as you would normally install a contributed Drupal module. Visit: https://www.drupal.org/node/1897420 for further information.

CONFIGURATION

After enabling the module, navigate to the block layout administration page (/admin/structure/block). When configuring a Views-based block, the "Items per block" setting will now appear as a number input field where you can enter a custom value.

TECHNICAL DETAILS

The module implements hook_form_alter() to target the form elements responsible for the "Items per page" setting. It specifically looks for $form['settings']['override']['items_per_page'] and modifies its
#type to 'number' and unsets the #options array. A #min attribute is also added to ensure the input is at least 1.

SUPPORT DEVELOPMENT ON THIS MODULE

A lot of hard work and dedication has gone into developing this module. If you find it helpful and would like to support ongoing development, consider buying me a coffee! Your support helps ensure that I can continue enhancing and maintaining this module for everyone. Thank you for your generosity!


Activity

Total releases
1
First release
Jan 2026
Latest release
2 months ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev Jan 26, 2026