- πΊπΈUnited States srdtwc Skokie, IL
I can also confirm this same behavior. That said, It does not always appear to be the case though. A colleague of mine tried reproducing this issue on a fresh install of Drupal 9 and he was unable to. I've tried removing all twig templates, custom javascript, and theme hooks from my custom theme to isolate potential sources of this issue and the behavior has remained the same.
When I enabled field_layout it works fine, but that breaks other aspects of my custom theme.
I believe this requires further investigation.
- π³π±Netherlands Martijn de Wit π³π± The Netherlands
Just a brain fart looking into the render array. Could the #acccess key causing the problem ?
- πΊπΈUnited States srdtwc Skokie, IL
I do not see #access when I go to /devel/render/. Am I looking in the right place?
- π³π±Netherlands Martijn de Wit π³π± The Netherlands
{{dump (content.title)}}
^ array:19 [βΌ "#theme" => "field" "#title" => Drupal\Core\StringTranslation\TranslatableMarkup {#2391 βΆ} "#label_display" => "hidden" "#view_mode" => "full" "#language" => "nl" "#field_name" => "title" "#field_type" => "string" "#field_translatable" => true "#entity_type" => "node" "#bundle" => "page" "#object" => Drupal\node\Entity\Node {#1373 βΆ} "#items" => Drupal\Core\Field\FieldItemList {#4303 βΆ} "#formatter" => "title" "#is_multiple" => false "#third_party_settings" => [] 0 => array:3 [βΆ] "#cache" => array:3 [βΆ] "#weight" => 1 "#access" => false ]
- πΊπΈUnited States srdtwc Skokie, IL
file: node--event--full.html.twig
{{dump (content.title)}}
array:19 [ βΌ "#theme" => "field" "#title" => Drupal\Core\StringTranslation\TranslatableMarkup { #1642 βΆ } "#label_display" => "hidden" "#view_mode" => "full" "#language" => "en" "#field_name" => "title" "#field_type" => "string" "#field_translatable" => true "#entity_type" => "node" "#bundle" => "event" "#object" => Drupal\node\Entity\Node { #2157 βΆ } "#items" => Drupal\Core\Field\FieldItemList { #6576 βΆ } "#formatter" => "title" "#is_multiple" => false "#third_party_settings" => [] 0 => array:3 [ βΆ ] "#cache" => array:3 [ βΆ ] "#weight" => 0 "#access" => false ]
- Status changed to Closed: duplicate
almost 2 years ago 5:35pm 16 February 2023 - π¬π§United Kingdom adamps
Basically this is what Drupal Core does. I think this is a duplicate of β¨ Allow node/entity to display title/label field as normal Needs work .
- πΊπΈUnited States srdtwc Skokie, IL
Could you explain more what you mean by that? I am have some trouble understanding what the root cause of this issue is, but I was able to work around the problem in my particular case with the following:
- Installed 1.x-dev@dev
- Installed manage_display_fix_title
- Applied the patch here: https://www.drupal.org/project/manage_display/issues/3143678#comment-142... β¨ Allow node/entity to display title/label field as normal Needs work
- After that I had to modify a couple lines in manage_display_fix_title.module for PHP 8 compatibility.
This does not seem like a great solution since it involves using an outdated version of the module a patch and some custom code. But maybe others will find this useful.
- π¦πΉAustria drupalfan2
The Manage display still does not work. No title is show on node page (node/xxx).
The patch #24 is not working!
Actually the submodule manage_display_fix_title does only contain 1 file:
manage_display_fix_title.info.ymlA file manage_display_fix_title.module is missing!
The Manage display module is unusable! I had to remove it. It does not work.
- Status changed to Active
about 1 year ago 5:11pm 20 September 2023 - Status changed to Postponed: needs info
about 1 year ago 9:22am 21 September 2023 - π¬π§United Kingdom adamps
I notice in #7 and #8 that #access is false which would likely explain why the title is missing.
Could you explain more what you mean by that?
On a node page, Drupal Core takes the title out of the normal page display. The manage display settings have no effect, and this module has no effect. The title will show in the title block, but if you don't display that block you won't see any title.
the submodule manage_display_fix_title does only contain 1 file:
This is expected - the sub-module is obsolete now.
Using this module assumes me that I don't need the Field Layout (core) module
Correct, this module doesn't need the Field Layout module.
The Manage display module is unusable!
The module works fine for nearly 3000 sites - only a small number have a problem. I have can't reproduce this bug when I follow the steps to reproduce.
- π¦πΉAustria drupalfan2
On a node page, Drupal Core takes the title out of the normal page display. The manage display settings have no effect, and this module has no effect. The title will show in the title block, but if you don't display that block you won't see any title.
But on some sites and some pages we need to disable the tilte block and to show the title within the node (within the tag).
This is exactly what this module is for.But the title within the node is not display, still if "Manage display" is configured correctly.
And again: When the title (Manage display) is not show then this module is not usable.
This is expected - the sub-module is obsolete now.
Then please remove the submodule immediately to avoid confusion.
The module works fine for nearly 3000 sites - only a small number have a problem. I have can't reproduce this bug when I follow the steps to reproduc
Maybe 2900 sites are using an older version of this module.
Please try to reproduce on a new Drupal installation.
Please ask for further information if you can not reproduce. - π¬π§United Kingdom juc1
I have the same problem
new / clean D10.1, Olivero theme,
enable manage_display
New title field shows in /admin/structure/types/manage/page/display
but new title field does not show on /node/1 after reload page, clear cache
enable field_layout
reload /node/1 - now new title field displaysI dont really want to enable field_layout if not necessary because it causes problems for me elsewhere
- π¬π§United Kingdom adamps
I understand that for a few people it doesn't work.
But for most of us it does, and I don't know how to reproduce the bug. So the next step is for somebody who is seeing the bug to work out what conditions cause it to appear. Maybe it depends on the theme, on the block settings, on the templates, etc.
- π¬π§United Kingdom adamps
I don't see a title variable. Do you mean label? Or content.title?
When using this module label will be blank. This is working as designed and is the whole point of the module.
content.title will be set based on manage display settings.
- π³π±Netherlands Martijn de Wit π³π± The Netherlands
yes I meant
content.title
. sorry for the confusing.I didn't check this recently, will try to do it this week and come back at it.
- π¬π§United Kingdom adamps
NB #9
Basically this is what Drupal Core does. I think this is a duplicate of β¨ Allow node/entity to display title/label field as normal Needs workMore explanation in #13
On a node page, Drupal Core takes the title out of the normal page display. The manage display settings have no effect, and this module has no effect. The title will show in the title block, but if you don't display that block you won't see any title.
- Status changed to Closed: duplicate
about 1 year ago 12:52pm 1 November 2023 - π³π±Netherlands Martijn de Wit π³π± The Netherlands
Agree lets discus it further at β¨ Allow node/entity to display title/label field as normal Needs work
- π¬π§United Kingdom juc1
> Maybe it depends on the theme, on the block settings, on the templates, etc.
@AdamPS I have the same problem on multiple sites but for my test mentioned in #15 above it is a new / empty 10.1 site, default content types, no other modules enabled by me, Olivero theme, I have not touched block settings or template files.