Vocabulary as options: use the term ID

Created on 22 August 2013, over 11 years ago
Updated 30 April 2025, 1 day ago

Currently when a vocabulary is used as a component option, the value that is saved in the database is the selected term name.

But this is not a correct way, because it cannot work neither on multilingual sites (@see Entity Translation and Title modules), nor when the term name is modified (which is a very basic requirement).

So it is necessary to rethink the way the options are handled. I suggest the following behaviour:

  • allow either text options (multiple lines) OR vocabulary, but not both in the same time
  • save the term ID when the option is "vocabulary"
  • update the field formatter to get the correct term name from its ID
✨ Feature request
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡±πŸ‡ΊLuxembourg B-Prod

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.

Production build 0.71.5 2024