Set Order Of Events In Month View

Home Forums Calendar Products Events Calendar PRO Set Order Of Events In Month View

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #914762
    ideasandbox
    Participant

    Hi. My months consist of a series of month long events (that happen every day) – for example, the month of January is National Soup Month. I have several month-long events, but also Daily events. New Year’s Day, Martin Luther King Day, Cheese Lover’s Day… is there a way I can have my single-day events appear atop the list of the day’s events? I saw a similar post and there was a reference made to checking out the Themer’s Guide… but I didn’t see anything there that addresses ordering…

    #915490
    Barry
    Member

    Hi there ideasandbox,

    Interesting idea!

    We’d be happy to consider putting together a tutorial for this if it’s something that could benefit other users, too … to that end, definitely feel free to post this as a feature request over on UserVoice 🙂

    tribe.uservoice.com

    In the short term you’d need to implement this as a customization. The Themer’s Guide is indeed a great starting point though you may alternatively wish to consider setting up a filter via the tribe_events_get_current_month_day hook if you’re comfortable working with actions and filters and modify the day’s data that way.

    It would however be a customization we’d need to leave you to drive forward at this time, I’m afraid.

    #915601
    ideasandbox
    Participant

    Cool. Sounds like the capability exists, it is a matter of building it… great! I’ll revisit the Themer’s Guide in more detail.
    Thank you for your quick reply Barry!
    I will post this idea on UserVoice – thank you.
    How about this… Instead of me having a month-long event appear on every day… Could I have them listed above the calendar? (say, above the days of the week, for example… or, in the sidebar)
    Is there already a function for that?

    #915635
    Barry
    Member

    Hmm, definitely possible. You’d need to define your criteria for these long running events first of all (any event running for 5 days or more, or whatever works for your use case) and do two things:

    • Build a separate query to retrieve those events and list them above the month view grid
    • Either modify the queries used to populate month view to do the opposite and not retrieve long running events, or, eliminate them from the result set before they are displayed

    We do almost have a parallel to this behaviour in day view (where ongoing events are listed at the top) and, in a looser sense, in week view where all day events are separated out. So you could potentially look at the code and see how that is implemented – but I suspect you’d effectively need to build it out afresh for month view.

    #915824
    ideasandbox
    Participant

    Okay… I got some homework to do. (Not literally, I’m not in school… I mean I have homework to make this work as I’d like). Thank you.

    #916405
    Barry
    Member

    No problem – I hope you get there 🙂

    Since it’s just a bit beyond what we can help with here on the support forums though I’ll go ahead and close this thread, but if we can help with anything else please don’t hesitate to create new threads a needed and one of the team will be happy to assist.

    Thanks again!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Set Order Of Events In Month View’ is closed to new replies.