Hello,
I am going through all my snippets and updating the deprecated functions. So far it has been pretty straightforward except for one little hangup:
In one of my snippets I have a call to the deprecated getTemplateVarOutput method like this:
$vars = $modx->getTemplateVarOutput(array('String'), $id);
The legacy code summary says "use modTemplateVar->renderOutput() on a collection of modTemplateVar objects" but I'm not sure how to implement this in my context.
Could anybody help me out?
Much appreciated.
try this:
$tv = $modx->getObject('modTemplateVar',array('name'=>'yourTVname'));
$value = $tv->renderOutput($id);