Make it possible to create views listing content with layout overrides

Created on 26 May 2020, over 4 years ago
Updated 5 May 2023, over 1 year ago

Steps to reproduce

  1. Install Drupal 8.9
  2. enable layout builder module :
    drush en -y layout_builder
  3. On a CT display, enable "Use Layout Builder" + "Allow each content item to have its layout customized."
  4. Edit core Content view on /admin/structure/views/view/content 
  5. In "FIELDS" section, click "Add" and search for "layout"
  6. In "FILTER CRITERIA" section, click "Add" and search for "layout"

Current result

  • Both in "FIELDS" and "FILTER CRITERIA" sections, only 2 fields are available : 
    • Layout
    • Layout (layout_builder__layout:delta)
  • None of them are useful to list content with layout overrides

Expected result

  • There should provide a way to list content with layout overrides (whether using "FIELDS" and "FILTER CRITERIA" sections of views)

 

Feature request
Status

Needs work

Version

10.1

Component
Layout builder 

Last updated 1 minute ago

Created by

🇫🇷France davidferlay

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

  • views

    Involves, uses, or integrates with views. In Drupal 8 core, use the “VDC” tag instead.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    Seems the request in #12 is slightly different from original IS. From what I can tell there is no way to accomplish #12. IS should be updated with desired results.

  • Status changed to Needs review over 1 year ago
  • 🇷🇺Russia sorlov

    We can use aggregation and count number of sections with layout_builder__layout:delta

    Then we can use Rewrite results and No results behaviour with next configuration

    To have next results finally:

    where test 1 node doesn't have custom layout configured, while test 2 and test 3 have custom layouts with different number of sections

  • Status changed to Needs work over 1 year ago
  • 🇺🇸United States smustgrave

    For the issue summary in #15

Production build 0.71.5 2024