We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32982
    • 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
      Jabiertxof (formerly XYZVISUAL)
      My bussines: http://marker.es
      https://www.youtube.com/user/jabiertxof/videos
      • 32241
      • 1,495 Posts
      Cool,

      I assume this will only shows the snippet/html when they were login as a super admin manager, right?

      Nice try for injecting it into the documentOutput. smiley
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 32982
        • 674 Posts
        realy i want the code show to all manager users and recode the snippet to do it
        post in first post
        hi
          Jabiertxof (formerly XYZVISUAL)
          My bussines: http://marker.es
          https://www.youtube.com/user/jabiertxof/videos