The logic of this is hurting my brain.
I assume there's some reason you can't just leave the symlink page's TV values blank and use a tag where you want to display the target page TV value:
Does this return the ID of the Symlink, or the Target?
return "ID: " . $this->modx->resource->get('id');
If it's the target, this should work:
return $this->modx->resource->getTVValue('MyTv');
If it's the Symlink, this should work, though it's a little tortured:
$symlink = $modx->getObject('modResource', $modx->resource->get('id'));
if ($symlink) {
$targetId = (int) $symlink->get('content');
}
$tv = $modx->getObject('modTemplateVar', array('name' => 'MyTv'));
/* If you can use the raw value of the TV */
return $tv->getValue($targetId);
/* If not */
return $tv->renderOutput($targetId);