This question has been answered by binaerstrom. See the first response.
<?php /* * Snippet call example: [[getTVvalue? &tvName=`link_attributes`, &docID=`13`]] * &tvName -> name of the TV (e.g. link_attributes) * &docID -> document ID (e.g. 13) */ $tvValStr = $modx->getTemplateVarOutput($tvName, $docID); return ($tvValStr[$tvName]); ?>
<body id="[[GetField]]" class="[[GetTemplateName]]">
<body id="[*pagetitle*]" class="[[GetTemplateName]]">
<body id="[*alias*]" class="[[GetTemplateName]] [*layout*] [[GetField? &field=`alias` &parent=`1`]]">