Page title block settings removes pages titles from views pages and group pages

Created on 17 June 2017, over 7 years ago
Updated 31 May 2023, over 1 year ago

In the block layout settings (/admin/structure/block) the page title can disabled / enabled per content type.

But this seems to have a major bug:

If you make changes to the page title block settings and disable the page title for one or more node types, then the page title is not shown anymore on views pages and group pages (module: group).

I tested several hours to find out that this bug is not a bug of the Bootstrap theme but a bug of the "Page title block" settings.

Reproduce it:
- enable the view "archive"
- open the view archive, go to /archive
- you can see the title of the views page /archive !
- NOW change the settings of the "Page title" block in blocklayout /admin/structure/block and enable the page title only for articles.
- go to /archive
- the views page "/archive" has no page title anymore
- any other views page has no page title anymore
- /contact page has no page title anymore
- "404 - Page not found" pages have no title anymore
- any group page (module: group) has no page title anymore

This can be reproduced with several themes (Bartik, Seven, Bootstrap, ...).

Where in the core source files could the error be located?

πŸ› Bug report
Status

Active

Version

9.5

Component
BlockΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¦πŸ‡ΉAustria drupalfan2

Live updates comments and jobs are added and updated live.
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 loopy1492

    In my .module file in the view preprocess, I did

    $view = $variables['view'];
    $variables['title'] = $view->getTitle();
    

    And was able to use {{ title }} in my template.

Production build 0.71.5 2024