- Merge request !1Issue #3143678by ckng: Allow node/entity to display title/label field as normal β (Open) created by ckng
- π¦πΉ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.
- π³π±Netherlands Martijn de Wit π³π± The Netherlands
I would opt in for option 3 from #4
Funny fact: If you enable Field Layout (core) module, option 3 is working out of the box.
- π³π±Netherlands firfin
@Martijn de Wit comment 29 Enabling Field Layout from core does not fix this for me. Any other settings needed that you know of?
@Moser comment #24 patch does not apply to 3.0 version for me, any chance to get a patch for this version?
For now I just made my own module with this code in it, thanks.
- πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
I have a pretty vanilla install I am working on. After enabling the 3.0 branch of this module, and enabling field_layout, the title field appears on my node.
- First commit to issue fork.
- πΊπΈUnited States sim_1
I don't know how to change the target to the 3.x branch, but I update the MR to use the solution from #23 with some minor tweaks. I don't think the solution is perfect, but I'm also just still trying to wrap my head around it so it's such a relief that it at least gets the title on the page. My main issue is that I don't understand why the "label" render array value goes away when this module is enabled. It breaks assumptions that are made in core node templates, as well as contrib themes. But again, I'm just relieved something works!!
- π«π·France Guillaume Aveline
I had the same issue.
After taking a look at `EntityViewController::buildTitle()`, I saw at the end:// Prevent output of the label field in the main content. $page[$label_field]['#access'] = FALSE;
So I made this hook
function MY_MODULE_preprocess_node(&$variables) { $variables['content']['title']['#access'] = true; }
And it seams to do the job, at least for me.
I Hope I'm not breaking something, :) - π³π±Netherlands gbr
#29, enable Field Layout (core) module.
Did work for me.Thanks!
I got it to work using hook_node_view as outlined in #23.
The trick is simply to move 'title' into something named differently, like "_title"