Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13329 closed defect (bug) (fixed)

Menu UI should (hierarchically?) sort static pages

Reported by: Denis-de-Bernardy Owned by: filosofo
Milestone: 3.0 Priority: high
Severity: critical Version: 3.0
Component: Menus Keywords: ux-feedback has-patch
Focuses: Cc:


When you've multitudes of pages, nested hierarchically all over the place, the Menu UI offers pages in a seemingly random order.

They should at least be sorted alphabetically. Showing the hierarchy would be nice too, in order to differentiate between pages with identical name but different parents.

Attachments (1)

sort-menu-pages-by-order-then-title.13329.diff (1.5 KB) - added by filosofo 5 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 @filosofo5 years ago

The behavior should be the same as that of browsing the edit page pages, in that the ancestors of the pages are present.

I don't understand how it could be both sorted alphabetically and hierarchical. Could you elaborate, please?

comment:2 @Denis-de-Bernardy5 years ago

  • Keywords ux-feedback added; ui ux removed

I was meaning using the order from edit pages, yes. The one that defaults to hierarchical + menu order, alphabetical.

comment:3 @johnonolan5 years ago

  • Cc john.wp@… added
  • Priority changed from normal to high

Denis is right, it is sorted alphabetically and hierarchically, see http://drp.ly/10dvaw and he's also right that this isn't being translated across to the pages metabox on the menus screen, see http://drp.ly/10dw6Z[[BR]]

On my install the page which has a child (Page Five) also isn't even showing up in the metabox at all.

comment:4 @johnonolan5 years ago

http://drp.ly/10dw6Z <== link got caught up with BR tag

comment:5 @nacin5 years ago

  • Severity changed from normal to critical

comment:6 @filosofo5 years ago

  • Owner set to filosofo
  • Status changed from new to assigned

I'll do this. I know exactly where and why it's happening.

comment:7 @filosofo5 years ago

  • Keywords has-patch added

Patch sorts pages in sidebar by menu order then title.

The big chunk that's removed I put in there originally when we were actually nesting pages in their hierarchy, so it made more sense for a page down in the hierarchy not to be orphaned (something the admin edit pages avoid, too).

However, at some point the nested hierarchy was removed so handling orphans like that no longer makes sense from a UX point of view. And I believe no one is pushing for pages to be ordered by publish date as Jane originally requested.

comment:8 @automattor5 years ago

(In [14744]) Order pages in menu box by menu_order, title. Props filosofo. see #13329

comment:9 @ryan5 years ago

Losing hierarchy is a bummer though. Any other approaches to showing parentage without having to mess with hierarchies? Maybe show parent title as a parenthetical?

comment:10 @koopersmith5 years ago

I'm not up to speed here, but see #13217.

comment:11 @ryan5 years ago

We'll live with it as is for 3.0.

comment:12 @ryan5 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.