Closed adamwintle closed 9 years ago
{$modx} is disabled by default due to security reasons. Better to use {$_modx}
{if $_pls['first-image'] != ''}
{$_modx->runSnippet("pthumb", [
'input' => $_pls['first-image'],
'options' => '&w=256&h=290&zc=T'
])}
{/if}
Access to variable {$_pls} in this case need only because $first-image
would not work.
Try to read russian docs about pdoParser.
Can I close this?
Yes this is working now.
I am trying to make a full Fenom chunk for pdoResources output, this is my pdoResources call:
and my
&tpl
chunk isEverything is working here except the pThumb snippet, I have tried this:
But this code does not work - how can the Fenom template call another snippet plus is parameters?