Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Rows Wrapper

Security covered Under active development 645 sites

Part of the Views ecosystem · 286 projects

This module provides a Views style plugin that wraps a user-defined number of rows into sets, enclosed by a specified HTML element and attribute. This allows you to group rows for custom presentation within your Views displays.

Description

This is simple view display style plugin, that combines a user defined number of rows into sets, wrapped by chosen HTML element and attribute. For example, if you have 9 rows on page, you can get 3 sets of rows (3 rows in each set) wrapped into div or span with custom class or id name.

If you have 10 results and you group them by 3, in this case, you will get 4 sets: 3 divs by 3 rows and the last div with one row.

Requirements: Views module.

Installation

To install this module, do the following:

1. Extract the tar ball that you downloaded from Drupal.org.

2. Upload the entire directory and all its contents to your modules directory.

Configuration

To enable and configure this module do the following:

1. Go to Admin -> Modules, and enable Views Rows Wrapper.

2. Create a view or open an existing view display settings page and click on style plugin name next to "Format:" label at the FORMAT section. Choose "Rows wrapper" style plugin in the list and click Apply.

3. Configure the settings, select number of rows to wrap, wrapper HTML element (div or span) and wrapper attribute (class or id). Enter attribute name and select "Apply to all items", if you need to wrap all the results or "Wrap once" to wrap first results only.

Customization

To override the default output html markup for the 7.x version, you may edit the template file views-rows-wrapper.tpl.php located inside module's folder.

For the 8.x version of this module, you may edit the template file
views-rows-wrapper.html.twig located inside module's templates folder.

Drupal 8–10 · not 11

Ask your assistant about Views Rows Wrapper

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-2.1 Stable 8–10 Apr 24, 2023