Hi
I’m new to ModX (and PHP) - and about to reveal it

- and i’m trying to make a snippet that returns the description field of the current document: I tried somthing like this:
if(!isset($pid) || $pid == ’’)
{
$pid = $etomite->documentIdentifier; //current document
}
//current document
$current = $etomite->getDocument($pid,’description’);
return $current;
I call it like this: [[getDescription]] - and nothing happens.
Any suggestion?
Thanks ind advance...