Try this:
if ($resource instanceof modResource) {
$fields = $resource->toArray();
$fields['TvPlaceHolderName'] = $resource->getTVValue('TvName');
$output[] = $modx->getChunk($tpl,$fields);
}
If you replace 'TvName' with the ID of the TV, it will be a little faster.
whats the distinction between the tvplaceholder name and the tvname here? having the same problem and this seems to be a viable solution...
you have to replace TvName with the name of your TV and TvPlaceHolderName with the Name for your placeholder
if your TV-name is myTV and you use
$fields['myTV'] = $resource->getTVValue('myTV');
you can use this placeholder in your chunk: