Closed Jako closed 9 years ago
Thanks, otherwise it can be overwritten by snippet properties? Am I correct?
In my opinion it will not get system/context settings with the first line. (Edit: it looks first in snippet parameters and then in system/context settings)
$xxx = $modx->getOption('xxx', null, $modx->getOption('xxx', $scriptProperties, ''));
is used by a lot of snippets to get system/context settings and if not set snippet parameters.
It did work on my test but I'll change it :)
$xxx = $modx->getOption('xxx', $scriptProperties, '');
Will get first snippet settings and then system/context settings.
Depends on what you want.
Yes, but this will always be a system-setting since its the same system-setting as used by the formit captcha hook. So this is the best solution for now. Thanks for explaining!
should be
if you want to use system/context settings for that.