I’d like to do the same thing of "clear cache" with a popup
i read this page for learn.
http://rtfm.modx.com/display/revolution20/Custom+Manager+Pages+Tutorial
but i find it very complicated to just trigger a plugin manually.
where can I find the script that use clear cache for to do the same ?
in the action menu : i see the remove locks with
MODx.msg.confirm({
title: _('remove_locks')
,text: _('confirm_remove_locks')
,url: MODx.config.connectors_url+'system/remove_locks.php'
,params: {
action: 'remove'
}
,listeners: {
'success': {fn:function() { Ext.getCmp("modx-resource-tree").refresh(); },scope:this}
}
});
i’d like to do this :
MODx.msg.confirm({
title: "Title of my plugin"
,text: "text kfjkjfkj"
,url: MODx.config.connectors_url+'componants/myplugin.php'
,params: {
action: 'remove'
}
,listeners: {
'success': {fn:function() { it's good},scope:this}
}
});
and in the myplugin.php
i have my plugin