We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6511
    • 60 Posts
    danny_kay1710 Reply #1, 16 years ago
    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?