I have been working with the eventsCalendar2 component lately for a project I'm working on and found the component to work great. In case anyone would like to install this system, I have taken the opportunity to provide a quick tutorial below. I find the component to install easily and works reliably.
Basically, the calendar works by having the calendar live on a page which is set as a container. Within this container are resources, each representing the events. Not only does the system pull the events from this container and display them over the calendar as popups (you hover over a colored date to have them pop up), each event in the popups act as links that take you to the resource pages where you can add as much detail about the event as you want.
The component's page is located here:
http://modx.com/extras/package/eventscalendar22 A working demo is located here:
http://webstartpage.ru/modx/eventscalendar2.html
I want to thank developer Bezumkin for all the help.
So, these are the steps to set up the component:
1. Download and install eventsCalendar2 through the package manager.
2. Add jquery to the page.
3. Set up a container to hold calendar events in. That is also the page that the calendar will appear on the site.
4. Set up a TV called event_date. Set input type (in Input Options tab) to 'date'. Make sure the container can see it
5. Set up a call in container that looks like this:
[[!eventsCalendar2? dateSource=`tvevent_date`]]
Make sure it is uncached so that the jquery will function correctly. I think I read somewhere that the call may not need the tv written next to event_date anymore. I haven’t verified this yet.
6. Create different calendar events by creating resources within the Calendar container. Use the event_date TV to enter the date of the event.
7. If you want to change the day the calendar week starts on (that is, whether the first column shows Sunday or Monday), add and experiment with this property within the call:
Experiment with day '1' or '0' to get the effect you want.
8. CSS is located at assets > components > eventscalendar2 > css > default.css
9. If your site is based in the United States, you know that the date formats are usually Month, day, year. With this component, the default, as it appears in the popups, is Day, Month, Year. To change that, all you need to do is add this as a property to the call:
&dateFormat=`%m.%d.%Y %H:%M`
This includes the time, which you may or may not want (it's the H and M part).
10. Out of the box, you may find that the system is European formatted. In order to Americanize the system a bit, the call ended up looking like this:
[[!eventsCalendar2? &first_day=`0` &dateSource=`tvevent_date` &dateFormat=`%m/%d/%Y`]]
This changed the colored days to appear on Saturday and Sunday. I found that if the &first_day was set to `1`, the week started with Monday, with Friday and Saturday colored red. Unfortunately, this also changed the day the month started to an incorrect day. In this case, setting it to `1` had February 1, 2012 start on a Tuesday. It's supposed to start on Wednesday. But, setting &first_day set to `0` corrected this problem. Changing &first_day to `0` shifted the red colored days to Saturday and Sunday. At this point, the labels of the days of the week were wrong along the top of the calendar. This was then corrected by changing the lexicon of the days of the week to the outputted value.
I'm sure the way I just wrote that may not be clear, but if you go to System > Lexicon, then filter the namespace dropdown to eventsCalendar2, you will see what I mean. I also understand that this will be corrected soon in the component, so you may not even need to deal with this by the time you install it.
[ed. note: waizen last edited this post 14 years, 7 months ago.]