Add weight field to node type and sorting for admin/structure/types

Created on 19 May 2012, almost 13 years ago
Updated 26 June 2023, almost 2 years ago
✨ Feature request
Status

Postponed: needs info

Version

9.5

Component
Node systemΒ  β†’

Last updated about 3 hours ago

No maintainer
Created by

πŸ‡«πŸ‡·France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Believe the types is ordered alphabetically. Wonder if this is still needed?

  • Status changed to Active over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    I would say this is still needed. Modifying this page should be easy (put the most-used content type at the top of the page regardless of alphabetical order, remove the content type that people can create but should only do as a reference from another content type), and it's really hard (because of my reporting that bug!).

    There is a solution in contrib (Drupal 7 and modern Drupal) that makes it easy again, providing a separate menu to power a replacement "Add content" page:

    https://www.drupal.org/project/custom_add_content β†’

  • Status changed to Closed: works as designed about 1 month ago
  • πŸ‡¦πŸ‡ΊAustralia acbramley

    I'm not sure why you'd need to reorder the admin/structure/types page, but this should already be possible by overriding the class for the NodeType config entity and implementing the sort method. ConfigEntityListBuilder calls this when it loads the entities. By default it sorts alphabetically.

    Alternatively you could add a custom view builder and override the load method.

    I don't think we need to go with any more complicated core solution.

Production build 0.71.5 2024