Updated: Comment #12

Problem/Motivation

No page title on manage display & form for non-default view mode

No manage form display title

No manage display title

Steps to reproduce

for the display, structure >> article will work.

for the form display, use the configuration >> account settings, and in the fieldset CUSTOM DISPLAY SETTINGS, enable the register form mode. (admin/config/people/accounts/form-display)

Proposed resolution

give them titles

Remaining tasks

review done.
no more tasks.

User interface changes

API changes

No.

Comments

andypost’s picture

Issue summary: View changes
andypost’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new2.87 KB
new4.02 KB

Test could not install node module, so no collisions with #1541298: Remove Node module dependency from Testing profile

andypost’s picture

The last submitted patch, 2: 2193609-2-fail.patch, failed testing.

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

Looks the goods

tim.plunkett’s picture

This is not just this page. admin/appearance/settings/bartik is another example.

When using hook_menu(), unless a title was specified, it would use the parent. We apparently relied on this in many places.

We might want to have a more general fix, or if not, a more concerted effort to check page titles throughout core.

andypost’s picture

Nice idea, filed #2194843: [meta] Write tests to make sure that pages have titles but current test for field_ui RouterSubscriber was incomplete and could be used as example.
Otoh it make sense to leave this task for some sprint and split on per module basis

catch’s picture

Title: No page title on manage display & form for none-default view mode » No page title on manage display & form for non-default view mode
Status: Reviewed & tested by the community » Needs review

Hmm #6 makes this sound like a regression in the menu link/routing system. I think we should discuss whether it's worth trying to add some kind of title fallback back in vs. fixing these individually.

dawehner’s picture

The path breadcrumb builder uses the last bit of the path, so "/foo/example/bar" returns "Bar" as title in the breadcrumb. We could apply the same logic here.

Added an issue which fixes most other instaces as well.

andypost’s picture

Field UI does not use hook_menu() so this issues should be fixed itself

swentel’s picture

Status: Needs review » Reviewed & tested by the community

Yeah, let's fix this one here, it has some nice new tests too.

yesct’s picture

Issue summary: View changes
StatusFileSize
new398.21 KB
new382.8 KB

added after screenshots.

Also noticed that for content types, the default mode is first, but for user it's not. opened #2203835: Make default form display and display mode be first secondary tabs

looks good to me also.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 228fdcb and pushed to 8.x. Thanks!

yesct’s picture

the change from node to the account settings fields for this test might have caused #2203271: Undefined index "rows_order" in theme_field_ui_table()

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.