• Resolved Ditto Dito

    (@ditto-dito)


    Maybe this helps someone, or may even be a feature-idea for Joe.

    I use My Calendar to display the scheduled courses of my training classes.

    Each of my classes has detailed description pages that go beyond what MC can provide. Keeping friction as low as possible, I wanted to have the link in the grid go directly to my details page (avoiding the modal popup).

    Around line 303 in my-calendar-output.php you have

    if ( 'true' === $open_uri ) {
        // $details_link = esc_url( mc_get_details_link( $event ) ); // click to plugin event page
        $details_link = esc_url( mc_event_link( $event ) ); //  click to my own event page
    

    By swapping out the $details_link the system does what I wanted. This is a very simple hack that only works if you entered the URL in the event details. Some hardening might be useful for general consumption, but as I am my best client, I skipped this.

    Happy New Year, everyone !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    You can already do this by changing the template tag used in the My Calendar Grid title template format at My Calendar > Settings > Text. The default title use {link_title}, which produces the details link, but you can use other template tags there to produce different links.

    Thread Starter Ditto Dito

    (@ditto-dito)

    This is AWESOME !!

    I have searched for a solution without hacking the code, but the obvious hid well.

    Thanks a ton, I guess there are still things to discover.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change link target in grid view’ is closed to new replies.