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

Priti197’s picture

I 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

Priti197’s picture

I 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!

huizache’s picture

Issue summary: View changes

This is still a problem thank you pritimhjn #2 solution does work.