Skip to content

added: individiual base path to store the iCal exports,#13

Open
ChrMue wants to merge 2 commits into
hschottm:masterfrom
ChrMue:master
Open

added: individiual base path to store the iCal exports,#13
ChrMue wants to merge 2 commits into
hschottm:masterfrom
ChrMue:master

Conversation

@ChrMue
Copy link
Copy Markdown

@ChrMue ChrMue commented Oct 3, 2017

added: HOOK $GLOBALS['TL_HOOKS']['cm_modifyVEvent'] with two parameters

  • the vEventObject and
  • the EventObject.
    The expected Return value is the modified vEventObject

added: HOOK $GLOBALS['TL_HOOKS']['cm_modifyVEvent'] with two parameters
- the vEventObject  and
- the EventObject.
The expected Return value is the modified vEventObject
@ChrMue
Copy link
Copy Markdown
Author

ChrMue commented Oct 3, 2017

Hallo Helmut,
in der Erweiterung wurden die ics-Dateien immer im Root abgelegt. Ich habe dies in den tl_settings konfigurierbar gemacht.
Außerdem habe ich einen HOOK eingefügt, mit dem sich das vevent-Objekt nachträglich manipulieren lässt. Ich musste beispielsweis zusätzliche Informationen einfügen.
Der Hook lautet

$GLOBALS['TL_HOOKS']['cm_modifyVEvent'][] = array('MyClass', 'modifyVEvent');
class MyClass
{
    public function modifyVEvent($vEvent, $eventObj)
    {
        // modify $vEvent,
        // $eventObj represents the Event object which should be described by $vEvent 
        return $vEvent;
    }
}

Gruß Christian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant