On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • When your website is live and you want to do corrections or whatever which are only visible for manager logged-in users, you can use this snippet:

    Snippet name: loggedOnly

    // [!loggedOnly?private=`--only visible when logged in--` &public=`--visible--`!]
    	$output = '';
    	$private = isset( $private ) ? $private : $output;
    	$public = isset( $public ) ? $public : $output;
    	if (!isset($_SESSION['mgrInternalKey'])) {
    		$output = $public;
    	else {
    		$output = $private;
    	return $output;
      Evolution user, I like the back-end speed and simplicity smiley