Ability to choose event color according to taxonomy

Created on 18 September 2024, 5 months ago

Problem/Motivation

This module loads much faster than Fullcalendar View, it looks like it's taking speed on its development and looks like a better option for the forthcoming future.

One of the features that is still missing compared to Fullcalendar View is an option to choose the color of an event according to a taxonomy.

Proposed resolution

Add an option to display events in different colors according to a taxonomy term.

Feature request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

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

Merge Requests

Comments & Activities

  • Issue created by @mpractic
  • First commit to issue fork.
  • Merge request !24Color by taxonomy term → (Merged) created by mandclu
  • 🇨🇦Canada mandclu

    The code in the MR seems to work, but with one limitation: If you go into Format Settings > Event Colors and select a taxonomy field and vocabulary, it will do an AJAX refresh and show a color input for each term in the specified vocabulary. Setting a value without saving first won't work, however. You need to set the vocabulary, save the settings, and then reopen the settings. Now any changes made will be saved and should be reflected immediately in the Preview, and on the normal view display after changes are saved.

    This seems to be a limitation of the Form API, since elements added after the form's creation are excluded from the submitted data for security reasons. I have considered instead of immediately showing elements that won't be saved, showing instead a message to save the settings and reopen them in order to assign colors.

    Marking this "Needs work" until we can figure out the UX issue, but also open to any other feedback on how this could be improved.

  • 🇨🇦Canada mandclu

    I decided to go ahead and change the UX to show a message after selecting a vocabulary, so that nothing is promised that isn't functional. With could commit this and then file a separate issue to try and show the term color inputs immediately.

  • Pipeline finished with Skipped
    4 months ago
    #303847
  • 🇨🇦Canada mandclu

    I decided what's been implemented so far is fine as a first step for a late alpha/early beta release, since we can continue to iterate on it if more work is needed. I will also create the follow-up issue to show the color fields immediately.

    • mandclu committed 708ce53b on 3.0.x
      Issue #3475358 by mandclu: Ability to choose event color according to...
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024