MODX Community

Plugins and Context

Is there anyway to restrict a plugin to only run within a specific context or two?

I think you have to program it in the plugin-code.
I have seen code like this in some plugins:

if ($modx->context->get('key') === 'mgr'){
	return;
}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.