-
- 2,877 Posts
-
- 53 Posts
Never mind my previous post. I used the modified PHx Plugin code and set the variable to the resource number of the template that my Ditto calls are on and "presto!" it works. You guys are genius. Now, to style the pagination call and finish up this project!
-
- 53 Posts
Is it possible for me to add multiple templates to the Plugin modification? Maybe a comma separated list?
-
- 2,877 Posts
/*####
#
# Name: PHx (Placeholders Xtended)
# Version: 2.1.4 !!
# Author: Armand "bS" Pondman ([email protected])
# Date: July 13, 2007
# Fix of base_path and option to exclude templates in config
# Sep 02, 2009 by mrhaw
####*/
include_once $modx->config['base_path'] . "assets/plugins/phx/phx.parser.class.inc.php";
$e = &$modx->Event;
$PHx = new PHxParser($phxdebug,$phxmaxpass);
$exclude2 = ",". $exclude .",";
$template = strpos($exclude2,",".$modx->documentObject['template'].",");
switch($e->name) {
case 'OnParseDocument':
if ($template === false) {
$PHx->OnParseDocument();
}
break;
}
Then go to config tab and paste in:
&phxdebug=Log events;int;0 &phxmaxpass=Max. Passes;int;50 &exclude=Exclude Templates;string;Enter comma separated Template ID Numbers
//PHx error solved -->
http://modxcms.com/forums/index.php/topic,42498.msg254641.html#msg254641
//PHx caching fix -->
http://modxcms.com/forums/index.php/topic,50357.msg293435.html#msg293435
//PHP 5.3.0 fix -->
http://modxcms.com/forums/index.php/topic,47824.msg280650.html#msg280650
-
- 2,877 Posts
Yes paste it on a new line in there
-
- 53 Posts
You’re brilliant. I sing your praises Mrhaw for all your help!
-
- 2,877 Posts
The thanks belongs to this awesome community and forums who’s teaching me
new things every day!
Before MODx -> Web Designer
After MODx -> Web Developer
-
- 964 Posts
I want to use EasyEvents in my sidebar
so it appears in all pages of all templates and
the coming events will appear under the calendar
also in the sidebar.
I also use PHx and Ditto in my site... is there a fix
to make it work like I want?
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner