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).

views_row_insert

953 sites Security covered
View on drupal.org

Description

This module provides a view style plugin, which is capable to insert custom row with html markup or blocks content into a view row results after every nth row.

The inserted row can contain a standard Drupal block created by modules like views, etc., or user's content block with custom html content. The row can use the custom class names along with the default row classes like views-row-1 and standard striping (odd/even), first/last row classes or it can go without them.

This module can be used for placing Google Adsense or any other code snippets/content into your views items output.

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 Insert.

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 "Insert Rows" style plugin in the list and click "Apply".

3. Choose the Row type by selecting "Block" or "Custom content" radio button. Depending on your choice, select a block name from the list or fill the "Custom content" textarea field. Be careful, this field does not filters out your input.

4. Select a number of rows to skip at "Insert after every Nth row" and also you can check some other settings like "Start with inserted row", "Insert row at the bottom" or "Limit the amount of inserted rows".

5. Enter name of the row class if any and configure other class related settings.

Requirements

Depends on Views module which is included into Drupal 8 core.

Customization

To override the default output html markup, you may edit the template file views-row-insert.html.twig located inside module's templates folder.

Activity

Total releases
1
First release
Apr 2025
Latest release
11 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
8.x-2.2 Stable Apr 22, 2025