Problem/Motivation

With Drupal 11.4 and Navigation menu, we encounter some regression and UX failure with Entity View override, here is a first list:

  • When enable 'Enable content overrides' on a content type, we lost the shortcut to the override display, there is only the top to default display.
  • From Navigation top bar menu > Display on a content for display override: no switch to other override display (were sub tabs?)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mogtofu33 created an issue. See original summary.

pdureau’s picture

Indeed, i reproduce exactly this.

mogtofu33’s picture

Assigned: Unassigned » mogtofu33
Status: Active » Needs work
pdureau’s picture

Proposal discussed in weekly/

Today, in EntityOverrideViewLocalTask, we create:

  • if there is only one overrridable display:
    • a single "Display: {{ Display Label }}" task alongside View, Edit, Delete, Revisions...
  • If there is many overridable displays:
    • a "Display" task alongside View, Edit, Delete, Revisions... with a direct link to the first overridable display
    • a second level of tasks: each task is a link to each overridable display

Betting on the fact only a few displays will be overridable for a specific content, we can do this instead:

  • a "Display: {{ Display Label }}" task for each overridable display alongside View, Edit, Delete, Revisions...
  • no second level

Needs to be tested with and without Navigation module.

It may also be the opportunity to do  #3542273: Remove EntityViewOverride::getDisplayInfos because the "weirdness" of this static method seems to be related to the 2 levels structure of the local tasks.

mogtofu33’s picture

Assigned: mogtofu33 » Unassigned
Status: Needs work » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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