Im having issues with phx and ditto. I am calling ditto within a snippet using...return $modx->runSnippet...
I believe I cannot run this uncached (like within a chunk/template)
Therefore discovered how to disable phx on a specific template using the code here....
Quote from: bunk58 at Feb 23, 2009, 09:13 AM
This is untested but you could replace the existing PHX Plugin code with :
/*####
#
# Name: PHx (Placeholders Xtended)
# Version: 2.1.3
# Author: Armand "bS" Pondman ([email protected])
# Date: July 13, 2007
#
####*/
include_once $modx->config['rb_base_dir'] . "plugins/phx/phx.parser.class.inc.php";
$e = &$modx->Event;
$PHx = new PHxParser($phxdebug,$phxmaxpass);
switch($e->name) {
case 'OnParseDocument':
if ($modx->documentIdentifier != 15) {
$PHx->OnParseDocument();
}
break;
}
Where 15 is the ID of your Easy Events calendar page.
I did have something similar working on a site, but eventually Easy Events was dropped so I reverted the plugin code back to the original
While I have tried this and it does work, im getting some cheeky characters appearing at the top of the page in question. (Between HEAD and TITLE tags)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
"/>`*]
" />`*]
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="assets/css/960.css" rel="stylesheet" type="text/css" media="screen" />
Any ideas?