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.
Project information
670 sites report using this module
- Created by polarwinds on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10 compatibility with documentation changes.
Development version: 8.x-2.x-dev updated 24 Apr 2023 at 21:49 UTC

