Thursday, 26 January 2017
  8 Replies
  1.5K Visits
0
Votes
Undo
Hi,
First of all, thanks for work done here to provide a free calendar that includes pretty much every thing that is needed. Since I want a little more, I will probably buy a club membership. However, I have a few questions.

Is it, or would it be possible to have events shown color coded in the calendar module based on the color chosen for the event (or category color, but in my case the event color would be better)? I know this might be problematic, especially if there are more than one events on the same day. DP Calendar has something like this, it creates a "block" for each event and places it in the cell of the calendar module. It's okay for only one event, but more stretches the calendar.

Would it be possible to add a css class for an event so that it could be used for colors in both the module and main calendar? Once again, I know this is problematic when more events are on the same day, so one of them would have to overrule the others if someone adds a class for each event that they create.

It may be better if I explain what I am trying to do, maybe then you will understand the reasons for these somewhat strange questions.

I want to set up a site for a town which would include everything that most people would expect. In addition I want to add a train schedule (actually only when the train leaves and in which direction) and a plan for the garbage disposal. I know, who wants to see the garbage pick up dates in a calendar :) . This is however the cause for the questions.

The garbage is picked up once week. Schedule is "regular" garbage one week, plastic the next week, the following week is "regular" garbage again, and then a week later paper. Normal pick up day is Tuesday, but this could change due to holidays, either a day before or a day after (the plan is here kind of confusing, which is why I want to add it to the calendar). I am trying to come up with a way that I can create these dates so that the backgrounds or borders for these days correspond with the colors chosen for these "events". That would be grey for "regular" garbage, yellow for plastic and blue for paper. This way people would always know what is going to get picked up that week and on what day even if "real" events also happen on that day. It would actually be enough if I could somehow add this to the calendar module, but it might also be useful for the main calendar.

My decision for a club membership will not depend on the answers here, that is pretty much already decided. But maybe I will get lucky, or maybe I get some other idea how I could accomplish what I am trying to do.


PS. One other thing. Are there differences in the core files between the various Club memberships? That means if I belong to the Gold Club and my membership expires, can I then update the core files with the free version, or would that mess things up or change things? Just trying to plan for the future.
8 years ago
·
#182508
Accepted Answer
0
Votes
Undo
Hello,

I see you are using the mini calendar module opposed to the JEvents view. It is still possible but you would need to use a template override and then load the color of the event into the cell if the event is in this category.

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
·
#182429
0
Votes
Undo
Hello,

Welcome!

1. Yes it is using the color string from: https://www.jevents.net/frequently-asked-questions/custom-format-strings

2. Yep that should be fine, just categories them. Or even tag them so people can see what is what and you can also filter these on a menu item basis.If the dates change because of holidays you can edit the individual repeat that it would usually occur on and change the date, becoming an exception.

3. The JEvents Core is the same throughout. You get plugins and support for the club membership :-).
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
·
#182469
0
Votes
Undo
Hi Tony,
Thanks for the answers. I do not think that you are quite understanding what I mean. If you look at the screenshot that I have attached, you will see that days with events are a light gray color with a rounded border. Each Tuesday is when the garbage gets picked up. On the 3rd, 17th, and 31st is regular garbage, the 10th is plastic, and the 24th is paper. On the 17th, 24th, and 31st are also other events, so that on these days there is garbage pickup and training. What I would like to do, is change the backgrounds for the days which includes the garbage pick up. Since the 3rd, 17th, and 31st regular garbage is collected, I want to have these days shown with a darker gray background which corresponds to the color chosen for the "event". The 10th should have a background color of yellow, for plastic, and the 24th should have a background color of blue, for paper. These colors should be used as the background colors even if there are also other events on these days. The other days with events should remain like they are now with the light gray background.
That was the reason that I asked about adding a css class when creating an event which would then be added for these days only, for example, if add "blue_paper" as the css class when creating an event it would look like this only for the days the event is on


<a class="flatcal_busylink blue_paper"</a>


instead of


<a class="flatcal_busylink"</a>


or at least something like that. If no class were added when creating an event it would also look like the second code with only the "flatcal_busylink" as a class

That was at least how I was thinking of doing this. but maybe you have understood me correctly, and I need to first wait until I purchase a club membership before I can see how this can be done. In that case, I will wait and see if I can figure it out then. If I cannot, I will post again :)
8 years ago
·
#182508
Accepted Answer
0
Votes
Undo
Hello,

I see you are using the mini calendar module opposed to the JEvents view. It is still possible but you would need to use a template override and then load the color of the event into the cell if the event is in this category.

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
·
#182622
0
Votes
Undo
Thanks Tony,

Was hoping it would be simpler, but I will see what I can do after purchasing. I have no problems with css or moving code around to change the layout, but adding new code usually results in me breaking something :) .
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.