- Issue created by @SirClickALot
- π¬π§United Kingdom juc1
@SirClickalot have you tried enabling the core field_layout module as mentioned here https://www.drupal.org/project/manage_display/issues/3306918 π Title field only seems to render when Field Layout (core) module is enabled Closed: duplicate
- Status changed to Closed: works as designed
10 months ago 8:28am 16 January 2024 - πΊπ¦Ukraine AstonVictor
Hi @SirClickalot,
actually, there is no title field on the page. It renders the page title (you can check the twig output).
for rendering the page title as a field you can:
1. use layout builder and add the title field to any position you want.
2. add access and force show the title as a field. it can be done e.g.function theme_preprocess_node(&$variables) { $variables['content']['title']['#access'] = TRUE; }
in both cases,
$tag
will be added as a wrapper.thanks
- π¨π¦Canada bohemier QuΓ©bec city, Qc
I find that this module fixes some long-time inconsistencies, especially with the handling of title.
Is there a reason for having #access=false by default? Doesn't this defeat the purpose of the module? After setting a field formatter for title, a user would expect that field to be displayed, just like the OP mentioned.
Or perhaps there could be a configuration form somewhere to allow access?
Thanks!
- leymannx Berlin
Also to me this is really confusing. I think the module should clearly state these limitation on both the module page and in the README. This would help a lot to get the people maybe even create the MRs that are missing to make this work OOTB. Should we add an issue for it?
- π©πͺGermany 4kant
I agree with @leymannx.
Luckily I found this issue...I donΒ΄t want to use layout builder by the way.
Thanks for the module!