Showing Past Events with Mini Calendar

Home Forums Calendar Products Events Calendar PRO Showing Past Events with Mini Calendar

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1340986
    Brian
    Participant

    I’m trying to display both a monthly grid calendar (defaulting to current month) and a list of events for that month on the same page.

    I’m trying to modify the mini calendar to do this but it will only list upcoming events, while I would also like to list events in the past if you flip to past months. Is there a way to enable past events in mini view?

    The only other solution I can think of is to modify the scale of the large calendar, while running a second loop to list events underneath.

    There is a similar question here, which I have applied to my theme, but it only changes the grid calendar to the date argument passed, and does not affect the event list.

    Showing past events below the [tribe_mini_calendar]

    #1341431
    Jennifer
    Keymaster

    Hi Brian,

    Thanks for reaching out! I’d be happy to help you out with this.

    When you flip through the months in mini view, the list below should update to show events for that month you flipped to, whether the month is in the past or the future (see screenshot).

    Can you please clarify what you would like to change, or is the mini calendar not working the way I described?

    Thanks,

    Jennifer

    #1341487
    Brian
    Participant

    Hi Jennifer,

    Yes, a past month’s events display in the grid, but I’d also like them to display in the list below, even if they’ve passed. (I have a feeling this might actually be deprecated behaviour?)

    I also know the mini calendar list loads with x number upcoming events, but ideally would like it to list the current month’s events instead (including past events).

    I have a beta site online now: http://lib.221a.ca/activities

    • This reply was modified 8 years, 8 months ago by Brian.
    #1342131
    Jennifer
    Keymaster

    Hi Brian,

    Thanks for following up! Just to clarify, the events listed below the event should match the month in the grid. So if you click back in the grid view, the events below will update to display events for the same month as the grid is displaying. This is the case going back into past months and into future months.

    However, to show past events and current events together when the page first loads, you would need to customize the way the widget works (there currently isn’t an out of the box way to do this). While we do not do customizations, our themer’s guide provides some great info on customizing our plugins and is the best place to start if you’d like to give it a shot! We are also happy to answer questions along the way and help point you in the right direction. I would recommend taking a look at the widget files in wp-content/plugins/events-calendar-pro/src/views/pro/widgets/mini-calendar, as well as the mini calendar widget class, found at wp-content/plugins/events-calendar-pro/src/Tribe/Mini_Calendar_Widget.php.

    If you’d like to get some help with the code, we also have a list of recommended developers that you could contact.

    I’m sorry I don’t have a better solution for you here, but I hope this helps! Please let me know if you have any questions, and feel free to reach out if you get stuck with the code!

    Thanks,

    Jennifer

    #1342166
    Brian
    Participant

    Hi Jennifer,

    So if you click back in the grid view, the events below will update to display events for the same month as the grid is displaying. This is the case going back into past months and into future months.

    After some more testing and disabling any customization, I’ve found this to be true for all months except the current month; if I navigate away from and back to the current month, it does not display any past events, only upcoming ones (if there are any). And looking at the demo on ModernTribe’s site, I am now realising this is indeed expected behaviour.

    It would be nice if this “show past events for current month” option could be toggled on and off, instead of assumed.

    #1343518
    Jennifer
    Keymaster

    Hi Brian,

    I understand where you’re coming from. We always try to set things up in a way that will work for the most users, but I can see how having the option could be useful.

    I would recommend posting this over in our Feature Ideas Forum, which is what we use to gauge user interest in new ideas and help guide future development efforts.

    For now, if you do come up with any questions while working on the customization, please let us know!

    Thanks,

    Jennifer

    #1353807
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Showing Past Events with Mini Calendar’ is closed to new replies.