This question has been answered by BobRay. See the first response.
[[!Personalize?
&yesChunk=`@CODE:<input value=""> etc`
&allowedGroups=`administrator`
]]&allowsGroups=`Administrator`
[[!AdminButton]]
/* AdminButton snippet */
$tpl = '<html for button here>';
return $modx->user->hasSessionContext('mgr')? $tpl : '';
Personalize won't detect Manager Login status, though.Yes, that was the problem.
That's it, thank you, Bob!You could do it with a fairly simple custom snippet. Put this where the button goes: [[!AdminButton]] /* AdminButton snippet */ $tpl = '<html for button here>'; return $modx->user->hasSessionContext('mgr')? $tpl : '';