Node edit form with 100+ fields, form actions displayed between fields

Created on 8 July 2015, almost 9 years ago
Updated 28 April 2024, 2 months ago

In node/node.pages.inc the $form['actions'], $form['options'] and $form['additional_settings'] have a fixed weight between 90 and 99, this causes them to appear between fields when more than 100 fields are present.

A temporary fix is to increase the fixed weights to a value between 900 and 1000, but I don't know if this has any negative consequences...

🐛 Bug report
Status

Closed: won't fix

Version

7.0 ⚰️

Component
Node system 

Last updated about 16 hours ago

No maintainer
Created by

🇩🇪Germany FreeAndEasy

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.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The patch still applies to latest 7.x branch. I tested it, and I did not find any issue.

  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update 2 months ago
    2,179 pass
  • Status changed to Closed: won't fix 2 months ago
  • 🇸🇰Slovakia poker10

    Thanks for reporting and working on this.

    In Drupal 7 there is no UI to manage form display (similar as in D10). So most of the sites are using hook_form_alter() to move form elements up/down and achieve the changes in the order. Maybe there are also contrib modules doing something similar.

    I agree this is a bug, but I think we cannot change the default weights in this D7 phase, because a lot of sites simply rely on the current settings (and have done custom changes based on this default settings). I would say there is a way more sites using hook_form_alter() to move form elements than sites with 100+ node fields. And this change would cause their node forms to re-arrange, so it could have a big impact. If someone wants to change this, it is easy and can be done using the hook_form_alter().

    Closing this as Won't fix. Thanks again for your effort here.

Production build 0.69.0 2024