есть вот такой сниппет
$criteria = $modx->newQuery('modResource', array(
'published' => '1'
,'deleted' => '0'
,'parent' => '0'
,'context_key' => 'web'
,'class_key' => 'modDocument'
));
$staticResources = $modx->getCollection('modResource', $criteria);
foreach ($staticResources as $staticResource) {
$s = $s . $staticResource->get('id')."<br>";
$relTVs = $staticResource->getMany('modTemplateVar');
foreach ($relTVs as $relTV){
$s = $s . " TV: " . $relTV->get('name') . "<br>Value: " . $relTV->getValue() . "<br><br>";
}
$s = $s . $staticResource->get('pagetitle');
}
return $s;
почему то значение $relTV->getValue() TV переменной всегда равно 1 - независимо от того какое оно на самом деле)))
в чем ошибка то???