Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Views Rows Wrapper

Security covered

Part of the Views ecosystem · 211 projects

View on drupal.org

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.

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
Apr 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

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