Ich möchte ein .ics-Datei generieren und krieg die Freisen...
der Code schaut so aus
Code: Alles auswählen
<?php
header("Content-Type: text/Calendar");
header("Content-Disposition: inline; filename=calendar.ics");
?>
<we:ifVarSet name="oid" type="request">
<we:setVar from="request" to="global" namefrom="oid" nameto="lvoID" />
<we:object id="\$lvoID" name="moto" classid="14">
BEGIN:VCALENDAR<?php echo "\n"; ?>
VERSION:2.0<?php echo "\n"; ?>
BEGIN:VEVENT<?php echo "\n"; ?>
UID:<we:field type="text" name="WE_ID" /><?php echo "\n"; ?>
DTSTAMP:<we:date type="php" format="YmdTHis" /><?php echo "\n"; ?>
DTSTART:;TZID=Europe/Berlin:<we:field name="Datum" type="date" format="YmdTHis" /><?php echo "\n"; ?>
DTEND:;TZID=Europe/Berlin:<we:field name="Datumende" type="date" format="YmdTHis" /><?php echo "\n"; ?>
SUMMARY:<we:field name="Titel" htmlspecialchars="true" /><?php echo "\n"; ?>
URL:http://amelungia.bigdetail.com/at/framework/termin-ics.php?oid=<?php echo $GLOBALS['we_doc']->OF_ID; ?><?php echo "\n"; ?>
LOCATION:<we:field name="Ort" /><?php echo "\n"; ?>
DESCRIPTION:<we:field name="Vorspann" /><?php echo "\n"; ?>
PRIORITY:3<?php echo "\n"; ?>
END:VEVENT<?php echo "\n"; ?>
END:VCALENDAR<?php echo "\n"; ?>
</we:object>
</we:ifVarSet>
<?php
die();
?>
Code: Alles auswählen
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
UID:192
DTSTAMP:20170330UTC130730
DTSTART:;TZID=Europe/Berlin:20170430UTC120000
DTEND:;TZID=Europe/Berlin:20170430UTC130000
SUMMARY:Testtitel
URL:http://amelungia.bigdetail.com/at/framework/termin-ics.php?oid=
LOCATION:Ort
DESCRIPTION:Vorspann
PRIORITY:3
END:VEVENT
END:VCALENDAR
Ich bedanke mich für Hilfe!!
Christoph