Thursday, 02 February 2017
  7 Replies
  1.8K 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.
Monday, 06 February 2017 11:21
·
#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
Friday, 03 February 2017 02:19
·
#182862
0
Votes
Undo
Have you tried some Custom CSS in JEvents?
Friday, 03 February 2017 09:50
·
#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....
Friday, 03 February 2017 14:36
·
#182906
0
Votes
Undo
Hello,

Where did you try added the CSS in your first code?
Friday, 03 February 2017 14:51
·
#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)
Friday, 03 February 2017 20:46
·
#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.
Monday, 06 February 2017 10:21
·
#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)
Monday, 06 February 2017 11:21
·
#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
  • Page :
  • 1
There are no replies made for this post yet.