Home › Forums › Calendar Products › Events Calendar PRO › Export all events
- This topic has 4 replies, 2 voices, and was last updated 11 years, 5 months ago by
Geoff.
-
AuthorPosts
-
October 31, 2014 at 7:32 am #852172
Erin Carter
ParticipantIs there a way to export all events at once? Currently we can export the events in a given month but our client would like to add a button that would allow the user to export an .ics file of all the events in the calendar. Is this possible?
October 31, 2014 at 8:51 am #852404Geoff
MemberHi there, Erin! Thanks for getting in touch and welcome to the forums. We hope you’re enjoying the plugin so far. 🙂
Good question. Yes, by default, the iCal feature will export events displayed in the current view. However, you can try adding this snippet to your functions.php file to force all events into the feed.
Will this work for you? Please let me know.
Cheers!
GeoffOctober 31, 2014 at 10:26 am #852535Erin Carter
ParticipantHey Geoff,
I tried adding the snippet into the functions.php file and there seems to be no change. Is there something else I need to do to get this hooked to the export button? What we really need is to add a second button for this functionality so our users can choose to export just this month’s events or choose to export all the events in the calendar.Thanks
October 31, 2014 at 4:04 pm #853083Geoff
MemberHey there, Erin! Thanks for following up.
By default, the iCal feed will always correspond to the view you are in. For example, if you are in Month view, then the link will correspond to the current month at is being viewed.
If you want to add another button next to the existing one, then you can certainly do that with some customization of the Month view template. You can create a theme override of the template and add the Month view iCal link and the List view link together:
- Month feed:Â Â [your-site]/events/?ical=1&tribe_display=month
- List feed:Â [your-site]/events/?ical=1&tribe_display=list
Unfortunately, that level of customization is outside the scope of what we can provide here in the forums. However, here are some materials you might want to check out:
- Themer’s Guide: This has more information about creating theme overrides and customizing the calendar templates.
- Plugin Docs: This is the full documentation for the plugin, including hooks for tribe_get_ical_link() and tribe_display_current_ical_link() which you might find useful for customizing the buttons.
I’m sorry I don’t have a concrete solution to offer, but this should help get you started.
Cheers!
GeoffNovember 18, 2014 at 8:51 am #889245Geoff
MemberHey there, Erin! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to open a new thread. We’d be happy to help. 🙂
Cheers!
Geoff -
AuthorPosts
- The topic ‘Export all events’ is closed to new replies.
