Hide the choice for a view display if there is only one option

Created on 21 December 2017, almost 7 years ago
Updated 11 June 2024, 6 months ago

I want to simplify the editorial experience of my website so people only have to chose the view they want to render and since I leave only one block display to chose I don't want to bother them with that useless choice.

✨ Feature request
Status

Needs work

Version

2.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States sassafrass

    Applied the latest patch and it hides a single Display as expected. However, I was wondering if it also makes sense to hide the View selection if there is only one View as well? Or to give users the option to hide those fields?

  • First commit to issue fork.
  • Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7
    last update 6 months ago
    Waiting for branch to pass
  • Pipeline finished with Failed
    6 months ago
    Total: 148s
    #196666
  • Status changed to Needs work 6 months ago
  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    See my comment on the MR + now that we have tests, the tests assume the default behaviour, so we should update the test coverage to cover a View with 2+ displays and a View with only 1 display.

Production build 0.71.5 2024