Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChrMue
Copy link

@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
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