Home › Forums › Calendar Products › Events Calendar PRO › Set Order Of Events In Month View
- This topic has 5 replies, 2 voices, and was last updated 11 years, 4 months ago by
Barry.
-
AuthorPosts
-
December 10, 2014 at 4:55 pm #914762
ideasandbox
ParticipantHi. 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…
December 11, 2014 at 10:03 am #915490Barry
MemberHi 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 🙂
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.
December 11, 2014 at 11:47 am #915601ideasandbox
ParticipantCool. 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?December 11, 2014 at 12:45 pm #915635Barry
MemberHmm, 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.
December 11, 2014 at 5:07 pm #915824ideasandbox
ParticipantOkay… 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.
December 12, 2014 at 7:43 am #916405Barry
MemberNo 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!
-
AuthorPosts
- The topic ‘Set Order Of Events In Month View’ is closed to new replies.
