Support

Home Forums Events Calendar Add-on Event Dates for Events Calendar Add-on

Event Dates for Events Calendar Add-on

Posted: September 29, 2017 at 2:22 am

Viewing 7 reply threads


ARAGATO

September 29, 2017 at 2:22 am

All our events do incorporate a multiple set amount of dates.
For example, the event Basketball will be held every friday, every week for a whole year.
Instead of creating 56 dedicated event dates in the event we just created one event date called “Basketball (friday)” and set the event start date to the first friday in the year and the event enddate to the last friday in the year.
http://uploads.aragato-server.net/screenshots/2017092932af4265a7.png

This works fine so far, however when it comes to displaying it with the Events Calendar Add-on the calendar breaks, because it sees one event starting like 01.01.2017 until 31.12.2017.
http://uploads.aragato-server.net/screenshots/2017092951671c4e0f.png

What do you suggest to solve this problem? I totally need that event calendar.


Tony

  • Support Staff

September 29, 2017 at 2:39 am

Hi there,

The Calendar see’s that as one long event, because as far as the event dates are concerned it is one long event.

For the calendar to display those events as single individual events on each Friday you would need to break the events out into individual events, or individual datetimes within the event.


ARAGATO

September 29, 2017 at 2:49 am

Hi Tony,

yes, absolutely right what you described. However, entering every single event date is just not feasible. We have more than 100 events with each having multiple weekly event dates. That results to a couple of hundred event dates for only one event.
Despite the huge amount of administrative work to enter all those dedicated dates, the display of an event with 200 event dates will totally break the site as far as visuallity is concerned.

Since there is no recurring events functionality in EE4 we used the workarround by using one event date with the first date and the last date for the whole event. But that, as already mentioned, breaks the calendar display since, as you mentioned correctly, it sees it as ONE BIG date instead of many multiple.

My question now is, how can we fix the issue?
Hook into the events calendar addon and modify the output by changing it from one BIG date to multiple ones?


Tony

  • Support Staff

September 29, 2017 at 3:08 am

I understand that you want to somehow fix one long event to display as multiple events, but the problem is, it’s just not the simple.

You can hook into the query the calendar uses to get the events, but how are you going to tell the calendar to display the events on every Friday? That’s the job of the events themselves, so pulling 1 event and trying to tell the calendar, that that event is not really 1 event, but X amount (lets say 52 for 1 on each Firday for a year) isn’t going to be easy.

The workaround you are using is not a workable workaround with the calendar. EE4 not supporting REM basically means it can’t batch create events for you, replacing that with 1 long event isn’t really a workaround but shortcut and it’s the shortcut that’s limiting what you can do πŸ™‚

The workaround to EE4 not supporting REM is to manually create the batches of events, maybe including them within their own category to ‘group’ them.

If you’d like to take a look at the how the calendar pulls the events and try to manipulate that to work how you are wanting, take a look within EED_Espresso_Calendar.module.php of the calendar add-on. Theres a few different hooks within that file, for example:

FHEE__EED_Espresso_Calendar__get_calendar_events__query_params

FHEE__EE_Calendar__get_calendar_events__calendar_datetime

However I’m not sure how you are going to tell the calendar to repeat the event.


ARAGATO

October 7, 2017 at 4:13 am

Hi Tony,

I developed my own little fix by adding a custom meta box to the Venue, added a calendar, read all datetimes and recalculated them to single events and displayed them in the calendar. Actually pretty neat πŸ˜€
http://uploads.aragato-server.net/screenshots/20171007185743b640.png
http://uploads.aragato-server.net/screenshots/201710074a17aa06e6.png

How do I apply to become one of your event espresso pros (https://eventespresso.com/developers/event-espresso-pros/)?

Are there any special requirements to sell add-ons for EE in your third party add-on store?


Josh

  • Support Staff

October 9, 2017 at 12:44 pm

You can apply to get listed in the pro directory here:

https://eventespresso.com/developers/event-espresso-pros-application/

There isn’t actually a third party add-on store on ee.com, but there is a directory that lists third party add-ons. If you want to apply to have your add-on included in the directory here’s a link to the form:

https://eventespresso.com/third-party-addons/#submit_plugin


Tony

  • Support Staff

October 18, 2017 at 4:23 am

That is a pretty neat solution, nice job πŸ™‚

I obviously haven’t seen the code but looks like it is working well for you.


ARAGATO

October 18, 2017 at 4:51 am

Thanks guys, issue solved long ago. Just forget to set it to resolved. πŸ˜€

Viewing 7 reply threads

The support post ‘Event Dates for Events Calendar Add-on’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso