Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It appears that "Taxonomy field menu" does not preserve weight order for reordered items. Updates to existing nodes or terms will cause their weight to be set back to zero (0). I would fully expect new terms or nodes to have an initial weight of zero.
Being able to reorder menu items is a important need. Losing reordering on existing items after updates is unfortunate.
Comments
Comment #1
smiletrl CreditAttribution: smiletrl commentedThanks for reporting this issue. It has been fixed in dev version.
Go for a taste:)
Comment #2
smiletrl CreditAttribution: smiletrl commentedBtw, new nodes will have a default weight 0, but new terms into the menu will have the term weight as default link weight. This makes sense for a new intialized "taxonomy field menu" to have same ordered terms with the taxonomy.
Comment #3
smiletrl CreditAttribution: smiletrl commentedsorry, just figured i added a new bug into code. Will update tomorrow
Comment #4
jschrab CreditAttribution: jschrab commentedREALLY happy for your response on this - I'll sit tight for your further revision. And yes, the weight choice to be derived from taxonomy for parent terms (for the child node-based menu items) is a good choice.
Comment #5
smiletrl CreditAttribution: smiletrl commentedThat bug has been fixed. You may try the dev version now:)
Comment #6
jschrab CreditAttribution: jschrab commented...and it works! Thanks again!
Comment #7
smiletrl CreditAttribution: smiletrl commentedGlad it works~