-
- 674 Posts
especial thanks to wendi
in $extradata put the code you want a snipet or simply html....
only show if is super administrator
$e = $modx->Event;
switch ($e->name) {
case "OnWebPagePrerender":
$a =$modx->insideManager();
if ($a=install&&$a=true&&$a=interact&&$a=event&&$_SESSION[’mgrInternalKey’]==1) {
$extradata="aaa";
$content .= $extradata ;
$content .= $modx->documentOutput ;
$modx->documentOutput = $content;
}else{}
break;
default :
return; // stop here - this is very important.
break;
}
and show to all loged into the manager
$e = $modx->Event;
switch ($e->name) {
case "OnWebPagePrerender":
$a =$modx->insideManager();
if ($_SESSION[’mgrInternalKey’]!=999999999999) {
$html="sss";
$content .= $html ;
$content .= $modx->documentOutput ;
$modx->documentOutput = $content;
}else{}
break;
default :
return; // stop here - this is very important.
break;
}
thanks again wendy
-
- 674 Posts
realy i want the code show to all manager users and recode the snippet to do it
post in first post
hi