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.
When multiple terms are imported (using the individual fields or the textarea), the terms are added alphabetically, and not in their order as they are added, so the user's desired order is lost. (If the user wanted the terms to be listed alphabetically, he could perform that ordering before importing them, or sort them alphabetically using the core Taxonomy module's functionality.)
Comment | File | Size | Author |
---|---|---|---|
#3 | add_option_to_weight_terms_input_order-1311620-3.patch | 1.55 KB | lahode |
Comments
Comment #1
Taxoman CreditAttribution: Taxoman commentedThis is quite important, IMO.
Comment #2
mh86 CreditAttribution: mh86 commentedI don't want to modify the term weight in that case. People expect it to be '0' when they add a new term.
Furthermore the core interface behaves the same way, e.g. you add A, C, B -> you get A, B, C. Still you can manually re-order them.
Nevertheless I can think of an additional option on the term add interface (e.g. a checkbox with either import alphabetically or in input order) and thus mark this issue as feature request.
Comment #3
lahode CreditAttribution: lahode commentedHi,
Here is a tiny patch, that add the option to order the imported terms according to there initial order
Cheers
Comment #4
IamOnStage CreditAttribution: IamOnStage commentedPatch works good for me, thank you!
Comment #5
interdruper CreditAttribution: interdruper at Interdruper commentedIt works fine, thanks!
Comment #6
aurelianzaha CreditAttribution: aurelianzaha at jobiqo - job board technology commentedpatch #8 from a similar issue
was merged with the MR https://git.drupalcode.org/project/taxonomy_manager/-/merge_requests/11
Comment #7
aurelianzaha CreditAttribution: aurelianzaha at jobiqo - job board technology commented