Skip to content

Instantly share code, notes, and snippets.

@zaigham
Created November 2, 2010 19:53
Show Gist options
  • Save zaigham/660187 to your computer and use it in GitHub Desktop.
Save zaigham/660187 to your computer and use it in GitHub Desktop.
global $modx;
$doc = $modx->getDocument($id);
$output = '';
if(!empty($doc))
$output = "<a title='".$doc[' pagetitle']."' href='".$modx->makeUrl($id, '', '',
'full')."'>".$doc['pagetitle']."</a>";
return $output;
global $modx;$doc = $modx->getDocument($id);$output = '';if(!empty($doc)) $output = "<a title='".$doc['
pagetitle']."'
href='".$modx->makeUrl($id, '', '', 'full')."'>".$doc['pagetitle']."</a>";
return $output;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment