How to get the event permalink in mini calendar grid view?

Home Forums Calendar Products Events Calendar PRO How to get the event permalink in mini calendar grid view?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #71758
    paulpetch
    Participant

    Hello,
    Is there an easy way to have the dots in the mini calendar link to the actual events?
    For the time being I have overridden the mini-calendar/single-day.php template with my own using a new version of the tribe_events_the_mini_calendar_day_link() function (renamed it to something else) so that at this block of code:

    } else {
    // day view is disabled, just show that there are events on the day but don’t link anywhere

    $html = ‘‘.$day[‘daynum’].’‘;
    }

    I could put tribe_get_event_link().
    (there should be an anchor tag there but I can’t seem to find how to insert code, I’m talking about line 95 in template-tags/widgets.php)

    From what I see though there’s no access to the event (the post/page permalink is returned instead).

    #71811
    paulpetch
    Participant

    Actually scrap that, I reckon there’s no way to do that since the mini calendar is not supposed to bring the actual events in the actual calendar.

    #71828
    paulpetch
    Participant

    Could give me a broad sense of how the big calendar works? This one (screenshot: http://d.pr/i/2QgQ)

    What I want is to put it in another page (a woocommerce product page) and query it so that it displays only events from a certain event category. But I’m having trouble to even make it function on the product page, it doesn’t display the current month, and only populates itself if I click on the next or previous month (screenshot: http://d.pr/i/jsg). All scripts and styles are normally loaded and identical with the original tribe template (via the proper Tribe_Template_Factory methods) so there must be something else at work here.

    Does the calendar need the URL field to understand what month it should load? It seems like it because changing the month by clicking also changes the URL via the history method in JS.

    Is there a way to tap on the data-category=”” attribute so I can limit the terms on it?

    Any heads up here would be appreciated.

    #71929
    Barry
    Member

    Hi paulpetch,

    The ability to embed views in other pages/posts has not been a design goal of The Events Calendar and has a number of challenges attached – so this really has to be a piece of work that you pursue yourself (not that it’s impossible by any means, just that it is outwith what we can offer support for).

    It does sound like you’re very close but really you’d need to keep digging through the code here to arrive at a solution 🙂

    Thanks for getting in touch though – it’s always great to see people building interesting things on top of The Events Calendar – however on this occasion there isn’t too much more we can offer and so I’ll go ahead and close this thread.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to get the event permalink in mini calendar grid view?’ is closed to new replies.