Support

Home Forums Events Calendar Add-on How can I display only a range of four days

How can I display only a range of four days

Posted: August 10, 2012 at 10:52 am

Viewing 2 reply threads


Mellen Street Graphics

August 10, 2012 at 10:52 am

I’d like to display only a range of four days using the calendar and also have that range be the only days that will ever display. Currently, the best I can do is the current week. I need it to display as only those four days at all times and not default to today’s date/week. Is this even possible?


Josh

  • Support Staff

August 13, 2012 at 10:36 am

There are some options that can get you closer to what you’re looking for:

In the calendar settings screen of the admin, there are two options that can be set to 1) show/hide the weekends: Show weekends yes/no

and 2) the first day of the week (sounds like you’re already using the week view). So if you wanted to display the first day as tuesday, set this to 2.

Finally, you can set the ‘gotoDate’ in the calendar by modifying espresso-calendar.php. As an example, if your date range was around the 15th of October 2012 twelve, you’d add this line right before the closing }); around the current version of the calendar’s line 823:

$jaer('#espresso_calendar').fullCalendar( 'gotoDate', 2012, 9, 15);

in context, it would look like this:

                    imgTimeout
                );
$jaer('#espresso_calendar').fullCalendar( 'gotoDate', 2012, 9, 15);
            });
</script>
<div id='espresso_calendar'></div>


Mellen Street Graphics

August 13, 2012 at 11:05 am

Thanks, Josh. Setting the goToDate got me the closest to what I’m trying to accomplish.

Viewing 2 reply threads

The support post ‘How can I display only a range of four days’ 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