<?php
$modx->setPlaceholder('Left', 'MODx Ok');
?>
вызов в шаблоне:
[!sd!]
[+Left+]
<?php
$tpl = (isset($tpl)) ? $tpl : 'left';
$modx->setPlaceholder("left", "MODx Ok");
$output = $modx->getChunk($tpl);
return $output;
?>[+left+]
[!test? $tpl=`left`!]