Support

Home Forums Event Espresso Premium Calendar Display a single day & a specific start time.

Calendar Display a single day & a specific start time.

Posted: February 1, 2014 at 2:13 pm

Viewing 1 reply thread


Mark Jarvis

February 1, 2014 at 2:13 pm

Is there some parameter or trick to make my calendar display only one particular day? People can’t seem to navigate from today’s date/week displayed to get to the date I want them focused on.

Here’s what I’m starting from: [ESPRESSO_CALENDAR cal_view=”agendaDay”] (Available parameters: month, basicWeek, basicDay, agendaWeek, agendaDay)


Dean

February 3, 2014 at 4:48 am

Hi Mark,

[ESPRESSO_CALENDAR cal_view=”basicDay”] (or agendaDay if you prefer) will show the current day.

There isn’t a parameter (currently) to set a specific date time. However if you have no objection to a little code edit then it can be done.

In the espresso-calendar/scripts/espress_calendar.js file if you add the following to the bottom of it, just before the last }); it will set EVERY calendar to start at this date.

$('#espresso_calendar').fullCalendar('gotoDate', 2014, 2, 17);

Those numbers are Year, Month, Day so that will be March 17th 2014. Please note that months start at zero so Jan = 0, Feb = 1, etc.

Please also note that any updates to the calendar will over write this code.

Viewing 1 reply thread

The support post ‘Calendar Display a single day & a specific start time.’ 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