stephenharris / Event-Organiser

WordPress plug-in, Event Organiser, development repository
http://wordpress.org/extend/plugins/event-organiser/
GNU General Public License v3.0
99 stars 76 forks source link

Populating Excerpt metabox during ICAL import #465

Closed jrsyjueco closed 5 years ago

jrsyjueco commented 5 years ago

Hi Stephen,

I am currently working on a Python script that automates the creation of ICAL files. I was just wondering if there is any ICAL property name that I could use when generating these files, such that when importing the files using Event Organiser's Import/Export feature, the Excerpt metabox of an Event is populated.

I understand that when the ICAL feed is generated during an export, the "DESCRIPTION" property uses the content from the Excerpt metabox, at least from what I can gather from ical.php. Is there a way to go the other direction?

EDIT: Currently on Wordpress 5.2.2 and using Event Organiser 3.7.6

jrsyjueco commented 5 years ago

Attaching Stephen's response for anyone else wondering:

Hi Jean,

Not by default. The description populates the event content rather than excerpt.

_You could add your own property such as X-EXCERPT and then hook into the ical parser action (eventorganiser_ical_propertyx-excerpt) and map that to the event excerpt.

Kind regards, Stephen