clientconfig.context_aware Yes
This question has been answered by tm2000. See the first response.
Hi There,
I am using ContextGateway to route my sites which are all in their own contexts using subfolders as so:
domain.com/en/
domain.com/fr/
domain.com/es/
I have updated ClientConfig, to make use of its new multi config settings.
So I have a system setting with the following:
clientconfig.context_aware Yes
When I go into 'configurartion' in the manager, I can choose a the setting 'telephone number' and from a dropdown, choose a context. Each one has its own phone number for each site in there, but there is also a fourth context in the list called Global.
It seems that the Global value is overriding everything else. So it ignores the values for each context, and just uses the Global value.
I have tested this by removing the value in 'Global' and then the output is empty.
Any ideas what I am doing wrong?
Thanks as always!
Andy
The problem with some gateway plugins is that they fire _after_ ClientConfig runs (OnMODXInit), which means ClientConfig does not know what the context is yet. Many routing plugins run on OnHandleRequest, which ClientConfig previously used as well, but that caused it to not work in processor requests and some other edge cases.
Usually you can switch out the events for the context router just fine, but it's best to report that to the developers to see if they can address that in an update.