Hi Jason,
I did not use any script... I use the "Package builder" as is explained
here but with modPlugin for class key
In order to install events, you need a resolver script like the one for TinyMCE.
Ok, so for my plugin with the "OnLoadWebDocument" event, I have to make a php file with something like that:
<?php
$success= false;
if ($pluginid= $object->get('id')) {
$pluginEvent= $object->xpdo->newObject('modPluginEvent');
$pluginEvent->set('pluginid', $pluginid);
$pluginEvent->set('evtid', 91); //OnLoadWebDocument event
$pluginEvent->set('priority', 0);
$success= $pluginEvent->save();
unset($pluginEvent);
}
return $success;
Is there a name convention for this kind of file (i.e add_plugin_events.php ??)
Do I need to put it in a particular place ?