Possible autocomplete for Entity Content category field

Created on 30 August 2023, over 1 year ago

Problem/Motivation

Perhaps we should implement some sort of autocomplete for the category field in Entity Contents in order to prevent many similar category names popping up in a larger list?

Steps to reproduce

Proposed resolution

We could:

  • Make the matching category names, like with a search, below the field, just like the Creator-field is currently working.
  • Make a list of already existing categories next to the field, and clicking on one will auto-fill the category field.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany lrwebks Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lrwebks
  • 🇩🇪Germany lrwebks Porta Westfalica
  • Assigned to Anybody
  • 🇩🇪Germany Anybody Porta Westfalica

    Absolutely! @thomas.frobieter and me should discuss what kind of component is the best here for UX and proceed then.
    I think an autocomplete might be a nice idea! (But we need to keep i18n in mind)

    I think there are tutorials and Drupal helpers for such kind of autocompletes. Another alternative would be an input with a data-list containing all existing values. Let's take a look at the Drupal Form API what's best and most easy.

  • 🇩🇪Germany Anybody Porta Westfalica

    If we'd like to use datalist instead of an AJAX call, see Allow FAPI usage of the datalist element Active

    There are some clear pro's and con's with AJAX vs. datalist, especially regarding performance and many entries.
    As I think we'll never have too many entries, datalist might be easier here.

    We need to keep in mind, that still the Markdown one's need to fit into the concept. And not to over-engineer it.

  • Issue was unassigned.
  • 🇩🇪Germany Anybody Porta Westfalica
Production build 0.71.5 2024