Posted by aeronox on January 9, 2008 at 3:39pm
| 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
the "project for Node" is Drupal ...
#3
Confirmed. Patch implements solution from aeronox. Drupal 6 is not affected.
#4
Committed to 5.x.
#5
Automatically closed -- issue fixed for two weeks with no activity.