Has there been any change in getResources context functionality lately? It was working as "Defaults to the current Context" as mentioned in getResources help page.
If you leave the context field empty, it brings all resources from all contexts, instead of getting the current context resources.
I have the version, 1.4.0, which I installed a week ago. Not sure if this happened after the installation, as I have just noticed this problem today.
-
MODX Staff
- 10,725 Posts
If you are using 0 as a parents value, then yes, it will go through all Contexts now. It now pulls in Resources from all Contexts based on the parents passed. If you want to limit it to a specific Context with parents=`0` you can add that to the contexts property. Any context explicitly provided in this property will limit the Contexts that are looked at regardless of parents.
Thank you. That is what I did after seeing all links mixed up in different domains. I think it was this item in "[#50] Use children of parents from other contexts" but missed that.