Hi,
I'm starting work on a new feature for a MODX Evo site which will be a Mgr Module to manage data in some custom tables. I've developed Modules before and this time, due to the nature of the data being edited, I'd like to be able to use AJAX in the Module UI rather than having to rebuild the whole UI for every change.
I've looked inside manager/index.php and can appreciate that there is a lot going on there to setup the manager environment. I've looked to see if anyone has developed an index-ajax.php version of the file but without any success.
I have used AJAX inside a Mgr Module before to execute code in a snippet (preview it inside manager). It worked but AFAIK it is completely outside of any mgr session etc. At a minimum, I think it should confirm the user is logged in correctly to the manager and setup the $modx object to use the API.
Is this possible?
What are the challenges of using AJAX within a Mgr Module?
Any help, as always, greatly appreciated.
PS: I'm sure this question has been asked before but, for some reason, I find it hard to find things in the forums. I did find this:
https://forums.modx.com/thread/25195/change-manager-to-use-frames-for-separate-sections which is relevant background to this subject.