Calendar View "list of events"

Home Forums Calendar Products Events Calendar PRO Calendar View "list of events"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #988553
    Ryan
    Participant

    HI,

    I noticed in calendar view there is no list of events that falls under the calendar. I’m wondering if that is an option. The reason I’m asking is that we love the photo view set to default on PC but on mobile the calendar view seems to be the best fit for ease for users. But, the calendar view doesn’t have a list of events that users can scroll through if they’d want to. Is there a way to do that?

    I’d like something very similar (horizontal list of events) like the map view with list of events below…thank you!

    #988681
    Barry
    Member

    Hi Ryan,

    I’m afraid that isn’t supported out of the box – but it’s certainly possible to achieve with a fairly straightforward customization.

    A great starting point if you haven’t already read it is our Themer’s Guide which explains how to safely override and customize our templates.

    In a custom copy of month/content.php for instance, just after this line:

    <?php tribe_get_template_part( 'month/loop', 'grid' ) ?>

    You might add a custom function of your own which loads and displays, list style, all events in the current month. A function like tribe_get_events() would be useful in such a case, ie:

    $event_list = tribe_get_events( array(
        'eventDisplay' => 'custom',
        'start_date'   => $start_of_month,
        'end_date'     => $end_of_month
    ) );

    You can then cycle through $event_list and display each entry in a list. To determine the start and end of the month you will of course at least need to know which date has been requested, and this can conveniently be obtained via the tribe_get_month_view_date() function.

    I hope that helps 🙂

    #993386
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Calendar View "list of events"’ is closed to new replies.