Support

Home Forums Events Calendar Add-on Calendar Addon Show Generic Event Name for Private Events

Calendar Addon Show Generic Event Name for Private Events

Posted: March 16, 2018 at 7:40 pm


InfoTech

March 16, 2018 at 7:40 pm

We have events that are private but still want to show our venue is booked. But we do not want to show the event title on the calendar but still have the event title display as normal in the Event Expresso list.

Is it possible to have a generic title display on the Calendar for events with a category of “private”?

Example: “Venue Booked”. Our goal is to show which dates our venue is booked but not show any sensitive info about the private event.


Josh

  • Support Staff

March 19, 2018 at 9:37 am

Hi InfoTech,

One simple way would be to add one event, name it “Venue Booked”, then add a Datetime to that event for every private event scheduled.


InfoTech

March 20, 2018 at 5:23 pm

Hi Josh,
That might work but would become unmanageable. We have more than 400+ events within a 2 year time span. Is the calendar addon module extensible? Can the calendar logic be altered with source code?


Tony

  • Support Staff

March 21, 2018 at 3:58 am

Hi there,

Yes the calendar is extensible and a lot of the the output can be altered.

For the title you’ll need this filer: FHEE__EE_Datetime_In_Calendar__to_array_for_json__title

That is passed the current title and current EE_Datetime_In_Calendar object, so you can do something like this:

https://gist.github.com/Pebblo/b4deef67fb1cbe6b5c6e297f6b9aebce

However note that you are increasing the number of queries on each event (not by much in this case, but worth noting).


InfoTech

March 22, 2018 at 3:27 pm

Hi Tony,
Okay great. I believe this should work. I will give it a try. Thank you for the help!

The support post ‘Calendar Addon Show Generic Event Name for Private Events’ 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