Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module changes the "Items per page" setting for Views blocks from a dropdown to a number field. This lets site administrators enter any custom number of items to display per block, offering more flexibility than the default options.

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!


Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2026
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Jan 26, 2026