hi,
i’m using revolution and i’m trying to retreive a collection of documents (all children of parentID=3), loop through them and check for each is it has a specific TV.
[tt] $c = $modx->newQuery(’modResource’);
$c->where(array(
’modResource.parent’ => 3,
));
$c->sortby(’menuindex’,’ASC’);
$resources = $modx->getCollection(’modResource’,$c);
foreach ($resources as $resource) {
$tv = modx->getTemplateVar(’jobtitle’,’*’,$resource->get(’id’)) ;
$output .= $tv;
}[/tt]
Now the modx->getTemplateVar does not seem to work. am i doing something wrong?
Now i started looking for some documentation on it but the docs i could find seem to suggest getTemplateVar is depreciated. is that true?
And is the class reference at
http://api.modxcms.com/ valid for revolution? is it complete? (getCollection is not in there) or is there another link with revolution class reference.
thanks
Ralph