Problem/Motivation

When setting a taxonomy term condition on a site that has multiple vocabularies with taxonomies terms that are the same, vocabularies cannot be distinguished unless you know the tid of the term. The 7.x version of context shows the taxonomy in a select list sorted by vocabulary which is much more friendly to multiple vocabularies than the autocomplete being used in the 8.x. Please return to the 7.x interface or find some other way to distinguish vocabularies.

Steps to reproduce

  • add two vocabularies that have some of the same terms
  • add a context that uses a term condition
  • type in a term that appears in both vocabularies and it is not possible to see which one refers to which vocabulary.

Proposed resolution

Return to the 7.x interface for this condition or find some other solution that shows which vocabulary a term is part of.

Remaining tasks

User interface changes

Return to the 7.x interface for this condition or find some other solution that shows which vocabulary a term is part of.

API changes

Data model changes

CommentFileSizeAuthor
#6 staff-term-autocomplete.png34.47 KBjustcaldwell
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kwfinken created an issue. See original summary.

loze made their first commit to this issue’s fork.

loze’s picture

Status: Active » Needs review

MR12 changes the UI to use a separate autocomplete field for each vocabulary, instead of a single autocomplete for all vocabularies.

loze’s picture

Version: 2.0.1 » 2.0.x-dev
justcaldwell’s picture

StatusFileSize
new34.47 KB

An option for anyone still facing this issue—we use Entity Reference Patterns to include additional information in entity/term reference results. After setting up a pattern to prefix terms with vocab name, our term autocomplete results look like this:

Screenshot of term reference autocomplete results.

It works like Pathauto. You can define whatever pattern you like for terms and other entity types, so this can provide disambiguation in any entity reference autocomplete.

astonvictor made their first commit to this issue’s fork.

astonvictor’s picture

Status: Needs review » Fixed

it's bad idea to use a lot of different fields per taxonomy vocabulary. It's possible to have e.g. 30 vocabularies that are not used for categorizing entities, and the UI will look not ok.

another solution is to update autocomplete suggestions to include vocabulary names.
fixed and merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.