Hello! I have a site that I recently upgraded to 3.1.1 and the plugin Frontend Editor stopped working. I’m assuming this plugin doesn’t work with MODx 3.X. Has anyone modified the code to make it work? Or does anyone have an alternate plugin to recommend? FRED won’t work for me as the site heavily relies on TVs. The simplicity of setting up certain TVs to edit was great with Frontend Editor for my needs.
I never used Frontend Editor, but I took a quick look at the code and the problem seems to be that the processors are not class-based.
You could try to fix the problem yourself by changing the files in the folder core/components/frontendeditor/processors
.
For example the file getall.php
:
- Change the name to
getall.class.php
. - Then include some code at top to define a class (The name of the class should be unique.) and the “process” function:
<?php
/**
* Frontend Editor
*
* @package frontendeditor
*/
class FrontendEditorGetAllProcessor extends modProcessor {
public function process() {
$modx = $this->modx;
$scriptProperties = $this->properties;
// --- Start of the existing code in the file ---
// if (!$modx->user->isAuthenticated('mgr')) {
// ...
- Add some code at the bottom to terminate the function and the class:
// ...
// return $modx->error->success('',$returnArray);
// --- End of the existing code in the file ---
}
}
return 'FrontendEditorGetAllProcessor'; // Make sure that this value corresponds to the name of the class in this file!
Do the same for the 2 other files. (Choose a different class name like e.g. FrontendEditorUpdateProcessor
.)
There may be additional problems with this extra on MODX 3.
I haven’t really tested it.
1 Like