[+phx:if=`[[Ditto? &parents=`[*id*]` &noResults=`zero`]]`:isnot=`zero`:then=` {{blah blah blah}}`:else=``+]
/** * phx * * (Placeholders Xtended) Adds the capability of output modifiers when using placeholders, template variables and settings tags * * @category plugin * @version 2.2.1 * @author Armand "bS" Pondman ([email protected]) * @internal @properties &phxdebug=Log events;int;0 &phxmaxpass=Max. Passes;int;50 * @internal @events OnParseDocument * @internal @modx_category Manager and Admin * * Fix of base_path and option (config param) to exclude templates comma separated * Nov, 21, 2013 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; }
&phxdebug=Log events;int;0 &phxmaxpass=Max. Passes;int;50 &exclude=Exclude Templates;string;Enter comma separated Template ID Numbers
Are you on a new server...No, it's the same server, the only thing that has changed is the upgrade to Evo 1.0.12 and PHx 2.20
[[Ditto? &parents=`[*id*]` &noResults=`zero`]]
[+phx:if=`notzero`:isnot=`zero`:then=`{{chunkName}}`:else=``+]
Try call Ditto uncached [!...!]
Quote from: mrhaw at Nov 22, 2013, 06:14 AM
Try call Ditto uncached [!...!]
Uncached Snippets won't work inside of PHx constructs as far as I know. The output contains the snippet call then.
[+phx:if=`[*id*]`:ne=`575`:then=` [!include? &file=`assets/tpl/anyrating.php` &return=`1` &define=`1` &atrGrp=`blog` &canVote=`all` &multiVote=`1` &init=`3`!] `:else=``+]
[*isfolder:is=`1`:then=`{{blah blah blah}}`*] or [*id:haschilds:then=`{{blah blah blah}}`*] (need haschilds.phx.php)