Any way to differentiate recurring events and day-specific ones?

Home Forums Calendar Products Events Calendar PRO Any way to differentiate recurring events and day-specific ones?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #908978
    mciny
    Participant

    Hi there,

    We are kind of struggling with the month-view of the Calendar, as we want to include ongoing exhibitions (they can last up to 3 months) but not every single day throughout their duration, because they saturate the display. If we create two events: one for the opening and another one for the closing, then it will not display in the list of current (ongoing) events.

    Is there a way to have these events gone from the grid month view but displayed in a list of ongoing events, maybe starting and ending date shown in month view only?

    Thanks a lot!

    #909019
    Geoff
    Member

    Hi there, Victor! Thanks for getting in touch and welcome to the forums. 🙂

    Interesting question! I do want to note first of all, though, that we are fairly limited in terms of helping out with custom development questions like this one. That said, I’ll start you off with a possible idea that you can run with and take from there.

    The short answer is that there is unfortunately no way to distinguish between the first, last and middle occurrences in a multiday event. There is a way to target specific posts, but not in a way that would target all posts, if that makes sense.

    However, I think you’re on to something with the idea of using multiple posts as a workaround. Here’s what I would try:

    • Create an event for the event opening
    • Create a second event for the event closing
    • Create a third event for the days in between
    • Create an Event Category (call it something like “Hide”)
    • Assign the third event to the Category

    Now, we can target this category with CSS. For example, a category called “Hide” will carry a cat_hide CSS classname, which you use in your theme’s style.css file. Hiding all events categorized with this category in month view would look something like:

    .events-gridview .cat_hide {
    display: none;
    }

    Of course, you should also note that using a category means it will pop up in other places as well. For example, an event’s categories are listed in the single event view. You’ll want to take measures to hide those instances as well.

    This is about as far as I can help with a customization like this, but hopefully this steers you in the right direction. We also a Themer’s Guide and our documentation available to further help with customized solutions.

    Cheers!
    Geoff

    #909209
    mciny
    Participant

    Thanks for the quick response, Geoff.

    This sounds like a great idea/request for the next release. Could you give us a hint on what would it look like in the PHP?

    #909240
    Geoff
    Member

    My pleasure, Victor! So glad this has helped so far.

    The good news is that there is no PHP using the process we just covered. It’s all CSS that can go directly in your theme’s style.css file. No heavy lifting required. 🙂

    If you’d like to see this sort of functionality baked into the plugin, I’d suggest dropping it on our UserVoice page. We check there often for popular feature ideas to consider for future releases.

    Cheers!
    Geoff

    #916503
    Geoff
    Member

    Hey there, Victor! Just checking in to see if there’s been any further update or if you still need assistance on this one–let me know. 🙂

    Cheers!
    Geoff

    #916554
    mciny
    Participant

    Thanks, Geoff.

    The client requested to have all events in the grid calendar and just to put in bold text the ongoing events (which doesn’t make much sense to me).

    In any case, having this feature in the next update would be awesome!

    Thanks again for your help and the follow up.

    Cheers!

    #916565
    Geoff
    Member

    My pleasure! Glad something got worked out–even if it’s not the most elegant workaround.

    Drop that feature idea into our UserVoice page–I can see how others might find that useful as well.

    I’ll go ahead and close this thread, but please feel free to hit us up with a new one if any other questions pop up. We’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Any way to differentiate recurring events and day-specific ones?’ is closed to new replies.