J
J
jeka-32021-04-05 09:47:26
MODX
jeka-3, 2021-04-05 09:47:26

How to infer from ClientConfig on context change?

How to infer from Modx ClientConfig on context change?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Tarasov, 2021-04-05
@jeka-3

How do you infer, with a phenomenon, without?
those. Do I understand correctly that the variable is not displayed in another context?
I wonder how you tried?

 ?
{$_modx->config.varname} ?

You need to check that the ClientConfig of the plugin has 2 events OnHandleRequest and OnMODXInit enabled.
In your context switch plugin, you need to set the priority for onHandleRequest higher than that of ClientConfig so that it starts earlier. Or reassign so that the plugin uses the OnMODXInit event.
https://community.modx.com/t/client-config-not-wor...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question