Since it is possible to have more than 10 fields on taxonomy, the "Relations" form element should either be added dynamically to the form or be allowed to be arranged with the other field items.

See http://screencast.com/t/QLmcHHyNQJ

A temporary solution is to use a hook_form_alter to move the relation around... or to manually edit the configuration items to have negative values. for weight.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

generalredneck created an issue. See original summary.

gnuget’s picture

Can you please provide a list of steps to reproduce your problem?

Thanks!

generalredneck’s picture

  1. Make sure taxonomy and fields ui are enabled
  2. Create a vocabulary
  3. Navigate to manage fields
  4. Create 11 or more fields on the vocabulary
  5. Navigate to add term for that vocabulary...

Notice the relations form is in the middle of the firm as shown in http://screencast.com/t/QLmcHHyNQJ

generalredneck’s picture

actually... an easier way is just to go to Manage Form Display for that Vocabulary and make some fields weight 8, and 9, and others 11, and 12.

You will see relations is in the middle of the fields...

generalredneck’s picture

I stuck Relations at the end of the form regardless of the max weight of the fields in the form display.

generalredneck’s picture

Status: Active » Needs review
gnuget’s picture

Status: Needs review » Needs work
FileSize
159.85 KB

By default my inputs start in 30 so the relations form appear in the begining of the form which I think is a expected behaviour:

taxonomy

But indeed having hardcoded the weight of this part of the form limit the ability of the user to order it, because this obligate the user to edit the weights of the form by hand.

I think the right thing to do is not force the "relations" section in the end of the form but expose that field in the "Manage form display" section and let the user decide where he wants to put that part of the form.

generalredneck’s picture

Your assumption is flawed. The reason why it starts at 30 is because of the Path module. So we can make the assumption that the path alias field is expected be at the top by default...
You can see that here:
screenshot

However, If I uninstall the path module (like is the case in the minimal profile), then this happens instead.
screenshot

Ideally, the position should be able to be controlled much like URL Alias is.

Pancho’s picture

Version: 8.0.2 » 8.6.x-dev

This is not more than a stop-gap bugfix, though a valid one. A more fundamental solution would follow the line described in #2751001: Expose configuration for Relation. Anyway this goes against the current dev version 8.6.x.

Pancho’s picture

Version: 8.6.x-dev » 8.5.x-dev

Sorry, 8.5.x is the correct target.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
larowlan’s picture

Title: Relations Form Element static at weight 10 » [PP-1] Relations Form Element static at weight 10
Status: Needs work » Postponed
Issue tags: +Bug Smash Initiative

Let's put our efforts into #3158934: Update taxonomy term base fields (parent and weight) to be configurable on form display instead given you can form alter around it

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

luiscarvalho’s picture

Just some additional information, Row Weights can accept negative values, so you can manually change the other fields to start at negative so it doesn't hit 10 and conflict with this element. This way you don't need to form alter around it.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.