Thursday, 02 February 2017
  7 Replies
  1.5K Visits
0
Votes
Undo
Hello and first, sorry for my bad english.
Is it possible to color the whole cell in a month view with the category color? (i have only one event per day, during the whole day).

Thanks in advance for your help.
8 years ago
·
#183046
Accepted Answer
0
Votes
Undo
Exactly. How do you expect we determine which category to use when there are two events? It is impossible which is why it's not a common element within JEvents Core.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

8 years ago
·
#182862
0
Votes
Undo
Have you tried some Custom CSS in JEvents?
8 years ago
·
#182881
0
Votes
Undo
Thanks knowyourfun.
Yes i tried to add this in custom CSS:


#jevents_body .cal_dayshasevents {
background-color:{{Event background color:COLOUR}};
}


But it has no effect.

If i try this

#jevents_body .cal_dayshasevents {
background-color:#cccccc;
}


It change the background color with #cccccc but i want the color of the event category and i have multiple categories....
8 years ago
·
#182906
0
Votes
Undo
Hello,

Where did you try added the CSS in your first code?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

8 years ago
·
#182916
0
Votes
Undo
Hello tonyp
I tried to add the first code in "custom CSS" ( i made a mix of what i found in custom layout and CSS)
8 years ago
·
#182945
0
Votes
Undo
Hello,

Ok so custom CSS only renders custom css. You could add this to your Custom Layout though:


<style>
#jevents_body .cal_dayshasevents {
background-color:{{Event background color:COLOUR}};
}
</style>


And it should work.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

8 years ago
·
#183031
0
Votes
Undo
Thanks Tonyp.
It's better but not perfect. If i use your code in my custom layout, the cell background is full of color --->ok
But if i have on the same month 2 events with 2 different categories (one red and one blue for exemple), It will colorize all cell with event with the latest category color (screenshot)
8 years ago
·
#183046
Accepted Answer
0
Votes
Undo
Exactly. How do you expect we determine which category to use when there are two events? It is impossible which is why it's not a common element within JEvents Core.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.