the configuration form
the view render

Views Layout Row

Views Layout Row is a Views row plugin that renders each result row with a
layout from the Layout API. Pick a layout, assign each field to a region,
and get full control over the markup of each row, without custom Twig
templates.

Features

  • Any layout can be used: core, contrib modules or your theme.
  • Assign each Views field to a layout region in the Views UI.
  • Field options are respected as with the core "Fields" row style:
    "Exclude from display", "Hide if empty", label and style settings (HTML
    elements and CSS classes).
  • The layout preview and the region lists update when you change the
    layout.
  • Views depend on the module or theme that provides their layout.

    Use cases

  • Card-based listings without custom templates.
  • Reusing the layouts of your theme inside Views.
  • Consistent row structures across several views.
  • How to use it

    1. In a view using fields, set the "Show" format to "Layout row".
    2. Choose a layout.
    3. Assign each field to a region. Fields set to "- None -" are not
    displayed.
    4. Save the view.

    The Views UI live preview is not available for this row style: save the
    view and check the page instead.

    Requirements

    Drupal 10 or 11, with the core Views and Layout Discovery modules.

    Upgrading to 1.1

  • Run "drush updb": views using this row style are resaved so that they
    depend on their layout provider.
  • The row markup changed: field contents are wrapped in a "field-content"
    element, and empty fields are displayed unless "Hide if empty" is
    checked. Check your CSS after updating.
  • Project information

    Releases