[kronolith] Fwd: ICS question

Ferdinand Gruber fer.grub at yahoo.de
Sat Feb 6 10:43:26 UTC 2021


Hi,

I have been using the script kronolith-import-icals.php in a PHP project 
for a long time to import events from a separate form into 
thekronolith_events table.

This is what the ICS file looks like that I am currently using

     $ical =
         "BEGIN:VCALENDAR".$eol.
         "VERSION:2.0".$eol.
         "BEGIN:VEVENT".$eol.
         "DTSTART;TZID=Europe/Vienna:".$event_start.$eol.
         "DTEND;TZID=Europe/Vienna:".$event_end.$eol.
         "DTSTAMP:".time().$eol.
         "UID:".$event_uid.$eol.
         "SUMMARY:".$event_title.$eol.
         "DESCRIPTION:".str_replace("\r\n", "\\n", $event_description).$eol.
         "LOCATION:".$event_location.$eol.
         "CLASS:PUBLIC".$eol.
         "END:VEVENT".$eol.
         "END:VCALENDAR".$eol;

The variables are generated from the$_POST array.


My question is: How can I put other fields, like the event_keywords 
field into the ICS file.

-- 
Regards from Austria
Ferdinand Gruber



More information about the kronolith mailing list