Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views display switch

No security coverage Under active development 355 sites

Part of the Views ecosystem · 280 projects

This module adds a feature to Views that allows users to switch between different displays of the same view. It can be added to a view's header or footer and generates links to alternative displays while preserving filter and pager settings. This enables flexible integration of view display switching, even for views without dedicated page displays.

This module provides a Views area plugin that can be placed in the header or the footer of a view and can generate Links to configurable displays of that view.

Features

  • Link labels can be customized
  • Exposed filter and pager parameters are maintained in the URL
  • Pages and Blocks are available for the switch
  • Using blocks the switch can also be used on views without a page display. This makes it very flexible and compatible with vies blocks placed on the page or rendered using for example Paragraphs.

Limitations

  • Currently is only working if there is one view on the page (This hasn't been tested and the results might be unwanted or throw errors).
  • While the functionality is working, it is recommended to either use block or page displays. Mixing both display types can lead to weird situations.

Installtation

  • Install module as usual
  • Add the "Display switch" handler to either the header or the footer of a view
  • Configure which displays to enable for the switch and set a label for each
Drupal 9–11

Ask your assistant about Views display switch

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
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.1.5 Stable 9–11 Nov 29, 2024