We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12372
    • 44 Posts
    Hello all,

    Converting to Revo, I understand from other topics that the new format to pull a template variable into a snippet is as follows:

    $tv_value = $resource->getTVValue(’tvnamehere’);

    However I get:

    Fatal error: Call to a member function getTVValue() on a non-object in /var/www/xxx/core/cache/elements/modsnippet/24.include.cache.php on line 7

    Any thoughts?

    Thanks!
      • 28215
      • 4,149 Posts
      $value = $modx->resource->getTVValue('tvnamehere');
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 12372
        • 44 Posts
        Thanks! Just found it and came back to post that I’d got it.