• Resolved greggsand

    (@greggsand)


    I need to be able to replace the link on the export button to make use of the “The Events Calendar Extension: Advanced iCal Export v2.” I want to change it from the default “/events/?ical=1” to “/events/list/?ical=1&custom=1”.

    I tried using an override jQuery script in my functions file, but I think it is being ingnored on initial page load (maybe due to another script that is taking priority or something?) It seems to work okay when I do a browser refresh. Anyone have any thoughts?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Abz

    (@abzlevelup)

    Hi @greggsand, I’m not entirely sure if we do have a workaround for this since it is customization. However, I’d ask the team in regard to this and what you’re trying to accomplish. If I understand correctly, you wanted to add custom params on the export button when clicking, and performing another action from the parameter?

    I’d get back to you whenever I hear from them.

    Best,
    Abz

    Thread Starter greggsand

    (@greggsand)

    Yes. Custom URL and params.

    The problem I was having with the stock button was that if the current month had no events, the export button would export an empty iCal file, even if you navigated to a month that had events. (For example, It is July and July has no events…Navigate to September (which has events) and click export -> export button creates empty iCal file…)

    I’ve found a work-around that seems to be working okay for me — I hid the stock export button using CSS and added a static HTML button in Events > Settings > Display > HTML after content. My export button exports a whole years worth of events.

    Plugin Support Abz

    (@abzlevelup)

    Hi @greggsand, thanks for providing more information here.

    I reached out to one of our devs and shared that you could use tec_views_v2_subscribe_links hook, to have access to the link objects and you can alter it as you see fit. https://docs.theeventscalendar.com/reference/hooks/tec_views_v2_subscribe_links/

    Moreover, appreciate you sharing the workaround as well. It seems like this is already working for you as well. I’d note this workaround and share it with other users needing something like this.

    Please do not hesitate to bump a new ticket on our way. We’d be glad to help you out.

    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hey @greggsand, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘iCal Export Issues…’ is closed to new replies.