We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 573 Posts
    Hi,

    is is possible to show a message in the front end to only those logged into the backend?

    thanks,
    G.
      • 10357
      • 573 Posts
      here is the solution:

      $isAuthenticated = $modx->user->hasSessionContext('mgr');
      if($isAuthenticated == true) {
      echo $modx->getChunk('footerCode');
      };
      [ed. note: g5604 last edited this post 14 years, 7 months ago.]