Closed Jsewill closed 2 years ago
I have been working around it by installing them via snippet:
if ($modx) {
$events = [
'FredBeforeRender',
'FredElementFormRender',
'FredOnBeforeFredResourceSave',
'FredOnFredResourceSave',
'FredOnFredResourceLoad',
'FredOnBeforeGetResourceTree',
'FredOnElfinderRoots'
];
foreach ($events as $eventName) {
$event = $modx->getObject('modEvent', ['name' => $eventName]);
if (!$event) {
$event = $modx->newObject('modEvent');
$event->set('name', $eventName);
$event->set('service', 6);
$event->set('groupname', 'Fred');
$event->save();
}
}
return 'Installed events.';
}
return 'Failed to install events.';
Is this why it's not possible to install the Fred extras (Fred Ace Integration/Fred TinyMCE RTE/Fred Font Awesome 5 Icon Editor) in MODX 3? I thought it was because they weren't made compatible with MODX 3 but maybe that's not the case? Are you saying they can be installed in some other way?
This issue has been mentioned on MODX Community. There might be relevant details there:
@rthrash Nothing new.
@neoneddy That's an automatic message sent from the forum.
@Mark-H @rthrash Ah, might be good to add some context to the automated message for those of us not in the know. I appreciate everyone's hard work on all of this.
When installing Fred on modx 3.0.1-pl, at least the custom events fail to install. This affects the Fred TinyMCE integration, among other things.