We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6737
    • 0 Posts
    Hi all, this is my first post in this forum smiley I hope someone has an answer to this question.

    I have created a processor from which I would like to access the context settings of a specific context which I have the context key of. How do I do this in the best way? In $modx->config I will find the system settings but as I said, I am after the context settings of a specific context.

    David
      • 24068
      • 4 Posts
      Hello and Welcome

      $context = $modx->getContext('mycontextkey');
      if($context) {
          $context->prepare();
          // context settings: $context->config
      }