Skip to main content

Devbit

Exclude already-displayed entities from a view

A page contains multiple Views blocks showing entities of the same type – for example teasers, lists, or cards. Without coordination between them, the same entity can appear in more than one block on the same page.

Use the views_exclude_previous module. See below or open the module documentation for further information.

Issue:

A page contains multiple Views blocks showing entities of the same type – for example teasers, lists, or cards. Without coordination between them, the same entity can appear in more than one block on the same page.

Solution:

Install and enable the module using your favoured method. 

It provides a contextual filter that tracks which entities have already been rendered on the current page. Adding this filter to subsequent Views blocks ensures each entity appears only once, regardless of how many Views are present on the page.

Dominik Wille

Dominik Wille

Senior Front- und Backend Developer

Ihre Drupal-Website zukunftssicher machen

Wir prüfen Ihr System und zeigen, was Sie für AI, Wartung und Upgrades brauchen.