Category Archives: MODx

MODx: Making Documents more Google Friendly

In order to do that, create two Template Variables bound to your Template: _ keywords _ description Then insert them in the head of your template: Your can access them in your PHP code (maybe it could be useful in … Continue reading

Posted in MODx | Tagged | Leave a comment

MODx: Plugin to Display Errors in a Development Environment

// You need to set the Apache variable LIVE on your live server $e = &$modx->Event; switch ($e->name) { case “OnWebPageInit”: if ( !isset($_SERVER['LIVE']) ) // development environment { error_reporting(E_ALL); ini_set(“display_errors”,”1″); } break; default: return; // stop here – this … Continue reading

Posted in MODx | Tagged | Leave a comment