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.
Currently, when installing the default installation profile, we have a vocabulary 'Tags', which is automatically added to the content type Article as a field. So far so good. The field name of the reference is taxonomy_tags (taxonomy_VOCABULARY_NAME). This is a bit strange, because every other vocabulary that is added to the content type later on will be named field_SOMETHING, eg field_cars.
I'd suggest to name the default vocabulary field field_tags instead of taxonomy_tags. See the attached patch.
Comment | File | Size | Author |
---|---|---|---|
fields-after.png | 54.07 KB | BarisW | |
fields-before.png | 54.35 KB | BarisW | |
taxonomy_to_field.patch | 1.33 KB | BarisW | |
Comments
Comment #1
yched CreditAttribution: yched commentedmakes sense IMO. That's a remnant from the time taxo fields were created automatically when a vocab was created. We removed that in #628244: No way to attach the automatically created taxo field.
Comment #2
BarisW CreditAttribution: BarisW commentedThat's what I thought ;)
Please review!
Comment #3
BarisW CreditAttribution: BarisW commentedWould anyone be so kind to review the (tiny) patch?
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedComment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD.