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

Created on 21 December 2017, over 6 years ago
Updated 11 June 2024, 14 days 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 14 days ago
    Waiting for branch to pass
  • Pipeline finished with Failed
    14 days ago
    Total: 148s
    #196666
  • Status changed to Needs work 14 days 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.69.0 2024