[[*editedby:gt=`0`:then=userinfo=`fullname`:else=``]]
<p>Revised by: [[!ShowEditedBy]]</p>
/* ShowEditedBy snippet */
$doc = $modx->resource;
$editorId = $doc->get('editedby');
$output = '';
if (!empty($editorId)) {
$profile = $modx->getObject('modUserProfile', array('internalKey' => $editorId));
if ($profile) {
$output = $profile->get('fullname');
}
/* Optional - show date of edit */
$editedOn = $doc->get('editedon');
if (! empty($editedOn) {
$output .= ' -- ' . $editedOn;
}
/* *** */
}
return $output;