Project:Drupal core
Version:5.x-dev
Component:node.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Just a little heads up: I think on the node/add initial page (content type selection), the content types should be sorted by the 'name' value, not the label. I tried customising the module myself, but I don't understand what a stdClass is and it's making things difficult.

On the Content Type Administration page, they are correctly sorted by name.

Just about everything in the UI is sorted by the displayed name, regardless of the backend label.

So this is somewhere between bug report/feature request.

Comments

#1

I realise this isn't really an API thing - it's a node module issue. But there's no project for Node.

I found the simple answer:
node.module line 2214

$item[$type->type] = $out;

to

$item[$type->name] = $out;

.. lucky I spotted it because I was about to give up on all the array & object sorting stuff.

#2

Project:API» Drupal core
Version:5.x-1.0» 5.x-dev
Component:Code» node.module

the "project for Node" is Drupal ...

#3

Status:active» needs review

Confirmed. Patch implements solution from aeronox. Drupal 6 is not affected.

AttachmentSizeStatusTest resultOperations
208023-3.patch770 bytesIgnored: Check issue status.NoneNone

#4

Status:needs review» fixed

Committed to 5.x.

#5

Status:fixed» closed (fixed)

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

nobody click here