Own Connector for MODX3

Hello,

how is it possible to make an own connector for MODX3 Processors?
I looked in several extras, but found only modx2 code.

Is it a good idea to use the connector/processor in frontend?

Thank you

bye
Chris

What exactly are you trying to do?
For the frontend, it might be a better idea to create a RESTful API.

I have an existing snippet where I can do some changes in Resource.
The snippet is in a resource with content_type JSON.
The Resource could only accessed for loggin user in specific user group.

The calls coming via ajax.

I am thinking how could I do it better in MODX3.

I assume that you have your own processor. MODX 3 has new processors, so extending modProcessor doesn’t work. You need to extend one of the new processors. Which one depends on what kind of processor you need.

See this blog post.

When developing connector/processor code, it can be helpful to run your code with Dev. tools enabled in Chrome (Ctrl-shift-i). Watch the Network tab. You can click on a request in the results to see the processor request and the response.