Skip to content

Instantly share code, notes, and snippets.

@Mark-H
Created March 23, 2011 14:15
Show Gist options
  • Save Mark-H/883145 to your computer and use it in GitHub Desktop.
Save Mark-H/883145 to your computer and use it in GitHub Desktop.
<?php
$tvname = $modx->getOption('tvname',$scriptProperties,'');
if ($tvname == '') { return 'No TV name given'; }
$tv = $modx->getObject('modTemplateVar',array('name' => $tvname));
$tvdesc = $tv->get('description');
return $tvdesc;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment