Classes generated by the Fullcalendar Colors module for node types use hyphens to separate words in the node type machine names. The classes output for the legend, though, use underscores. So, colors don't match up between Legend and Calendar with multi-word node type machine names (assuming they have underscores).
For instance,
output by FCcolors module => colors-node-type-my-events
output by FClegend module => colors-node-type-my_events
Comments
Comment #1
priti197 commentedI am facing the same problem.
Due to underscores in classes for content types, color code is not getting applied for legend block.
Please help.
Thanks
Comment #2
priti197 commentedI have found a fix for time being.
In fullcalendar/fullcalendar_legend/theme/theme.inc
Change line 73:
From
$entity->bundle = $entity->type = $type['bundle'];
To
$entity->bundle = $entity->type = str_replace('_', '-', $type['bundle']);
Hope that helps!
Comment #3
huizache commentedThis is still a problem thank you pritimhjn #2 solution does work.
Comment #4
dcam commentedI've volunteered to help clean up the FullCalendar issue queue. As part of that effort I'm closing issues open for unsupported versions of the module as "Closed (outdated)". That includes any Drupal 7-compatible versions because no active maintainer is supporting them.
If this issue is still relevant for version 3.x of FullCalendar, then feel free to re-open it and update the issue version number.