- πΊπΈ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.
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?
Active
9.5
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
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.