Does the action ‘mgr/default/stickytoggle’ look correct here, please, or is my naming/path convention incorrect?
MODx.Ajax.request({
url: MODx.config.connector_url,
params: {
action: 'mgr/default/stickytoggle',
id: rec.get('id'),
sticky: rec.get('sticky') ? 0 : 1
},
listeners: {
success: function(r) {
if (r.success) {
rec.set('sticky', r.object.sticky);
grid.getView().refresh();
MODx.msg.status({
title: 'Success',
message: 'Sticky toggled!',
delay: 2
});
}
},
failure: function(r) {
MODx.msg.alert('Error', r.message || 'Could not toggle sticky');
}
}
});
As per Harry’s video I have also tried mgr\default\stickytoggle, Pascal case and various other combinations. Just can’t crack the formula which - is this correct? - I think has changed since an ExtJS upgrade, throwing off pretty much all the relevant MODX documentation?
Here is the error…
(ERROR @ core/src/Revolution/modX.php : 1794) Unable to load processor for action “mgr/default/stickytoggle”, it does not exist as an autoloadable class that extends \MODX\Revolution\Processors\Processor, and also not as a file in “core/src/Revolution/Processors/mgr/migx/stickytoggle.class.php”
I am using MODX 3.1.1-pl with MIGX 3.0.5-beta, trying to setup a processor for a MIGX form function. My Processor Path is defined as core/components/mycomponent/processors/.