Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bloomt created an issue. See original summary.

Zsuffa Dávid’s picture

Hi,

I had the same issue, but i found it how to do it:

Instead of:

Usage

After enabling the module as usual, visit the Manage fields page of the content type, taxonomy vocabulary or "comment type" which you wish to replace fields of and click the replace link. That's all.

do:

Usage

After enabling the module as usual, visit the edit page of the content type, taxonomy vocabulary or "comment type" which you wish to replace fields of and select the checkbox "Display Configurable Title" That's all. Now you can go to "Manage display tab" to use your title field.

content type edit page

display page with title field

Zsuffa Dávid’s picture

Component: Code » Documentation
FileSize
109.23 KB

Ok i missunderstood the case a bit. The title don't show up on node page neither for me.

But on a views page with default view mode the title is on the right position.

And, on the devel markup tab :'node/2/devel/markup' i can see the title field:

html output

but the final output don't contain it.

Syndz’s picture

Title: D8 version not working? » Title on full node views is not showing up
Component: Documentation » Code
Category: Bug report » Feature request
Status: Active » Needs review
FileSize
3.99 KB

It appears that this feature has not been implemented yet.

I have edited the title of the issue so that it reflects the subject.

I have added a patch that creates a Controller which overrides the default NodeViewController::buildTitle method.
I'm not sure if this is the way to go, but it seems to be working.

Syndz’s picture

Assigned: Unassigned » Syndz
Status: Needs review » Needs work

My patch will fail during a new drupal installation as there's a dependency missing on the node module.

I will upload a new patch later.

Syndz’s picture

Assigned: Syndz » Unassigned
Status: Needs work » Needs review
FileSize
4.38 KB

Here's a new patch that adds node as a dependency.

stevieb’s picture

patch in #6 fails and gives a wsod
the error log shows the following error "ReflectionException: Class Drupal\title\Routing\RouteSubscriber does not exist in ReflectionClass"

judapriest’s picture

Patch #6 do work for me. But I didn't check from a new install.
At least, I didn't have any wosd.

Test with the 8.x-2.x-dev version on Drupal 8.2.
Waiting for more review for RTBC.

anfor’s picture

Just rerun the patch to fixed the test case.

anfor’s picture

AdamPS’s picture

An alternative fix that worked for me is to edit code in title_preprocess_node and uncomment this line

      // $variables['content']['title']['#printed'] = FALSE;
AdamPS’s picture

Category: Feature request » Bug report
Status: Needs review » Needs work

Hopefully we will have a new D8 maintainer soon, and we can fix this. I think #11 is the way to go as it aligns with #2353867: [META] Expose Title and other base fields in Manage Display - if/when that gets fixed the workaround code of #11 is no longer needed.