Title setting in views UI does not indicate when the title might be overridden

Created on 30 March 2013, over 11 years ago
Updated 25 January 2023, almost 2 years ago

Whilst building a blog in Drupal 8 I tried to change the title of the default frontpage view. The experience was quite confusing because it didn't work #1956912: Title area handler sets the title even when it should not (results in "Welcome to Drupal" never going away) β†’ and the UI is a little bit obscure...

The frontpage after installing the standard profile

After clicking on the contextual edit view button


The title seems to be none?!?!?!?

Well I can't see any other title setting so lets change it

Yep this looks good!

... but the frontpage does not change!

What I should have changed...

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
Views UIΒ  β†’

Last updated 6 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • VDC

    Related to the Views in Drupal Core initiative.

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.

  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    This came up as a random triage issue for Bug Smash. I'm having trouble agreeing that this is a bug. Nevertheless, in my opinion, it doesn't seem like the "Title override" area handler is an appropriate use of area handlers.

    The AreaHandlerBase is the base class for "Plugins governing areas of views, such as header, footer, and empty text." The title of the view is not one of these areas. Instead the Title handler misuses the preRender method to change the title of the view, which should be out of its jurisdiction.

    Another point to support this argument is that you can add multiple "Title override" handlers to the same area (No results behavior). The last one wins out.

    It seems there ought to be another way to specify the title when there are no results. Or perhaps there needs to be another way to define "behaviors" (such as overriding settings) rather than hijacking "areas".

    Happy to hear arguments as to why this should remain the way it is.

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    The views UI has changed since this was created, in a way that helps address this issue. Instead of being tucked away in Advanced, the title override is clearly visible in the page:

    So I also think it's not a bug, but for the reasons mstrelan outlined, the current functionality is not ideal. So perhaps a follow up task to modify that?

    Although I have to say, in 10+ years of building Drupal sites, I never knew about this quirk of standard install and have never used the title override when there are no results! TIL :)

  • πŸ‡¦πŸ‡ΊAustralia griffynh Sydney

    Hola, this came up again in the #bugsmash channel as the Views daily triage target.

    As we've had no update in nearly 2 years, if there's no update in 3 the next 3 months this issue may be closed.

Production build 0.71.5 2024