Customizing Calendar Export Output
-
Hello,
we are using the TheEventsCalendar Plugin together with The EventsCalendar Pro Plugin.
We are also using the feature to export the information about events to several calendar formats, for example the Google Calendar, Apple iCalendar or the Outlook Calendar.
We managed to customize the content of the output files for the above noted calendar formats by manipulating the files in the src/Tribe/Views/V2/iCalendar/Links/GoogleCalendar.php and the-events-calendar/src/Tribe/Views/V2/iCalendar/Traits/Outlook_Methods.php and
the-events-calendar/src/Tribe/iCal.php files.For example in the File src/Tribe/Views/V2/iCalendar/Links/GoogleCalendar.php
we changed the statement around line 127$event_details = $event->post_content;
to
$event_details = $event->post_excerpt;to put the excerpt text of the post into the output for the Google Calendar.
But all our customization are placed in the Plugin (Core) Files and after every update of the plugin the changes have to be made again in the Plugin Core Files
As our changes effect the core files of The Event Calendar plugin we are now wondering where to put these changes in a local folder so that the changes will not be lost when new versions of your plugins are released.
We are also wondering if there is the possibility to place code into the child theme’s funtion.php-file to make our changes safe for updating.We are aware that there are resources for customizing template files in the knowledgebase. But we think that these are not appropriate for our issue.
Does anyone have a hint or advice to help us?
Many thanks!
- The topic ‘Customizing Calendar Export Output’ is closed to new replies.