Have the Template Variables been initialised when the call is made to the onParseDocument event?
I have a plugin which runs on that event and I was going to make it reference TV’s but no matter what I do it doesn’t seem to pull any values in from the Template Variable
$tv = $modx->getTemplateVar('keywords');
$array = explode(",", $tv);
print_r($array);
I know your not supposed to use print_r in a plugin but it was just to see if it was being populated which it isn’t.
Any ideas guys?