using modx 1.0.2
Can anyone please explain why I can’t get this call to work in a plugin inside a OnDocFormRender event
$modx->getTemplateVarOutput('myTV');
I keep getting this
version for the right syntax to use near '' at line 1 »
SQL: SELECT tv.*, IF(tvc.value!='',tvc.value,tv.default_text)
as value FROM `topvicto_modx`.`modx_site_tmplvars` tv INNER JOIN `topvicto_modx`.
`modx_site_tmplvar_templates` tvtpl ON tvtpl.tmplvarid = tv.id LEFT JOIN `topvicto_modx`.
`modx_site_tmplvar_contentvalues` tvc ON tvc.tmplvarid=tv.id AND tvc.contentid = ''
WHERE tv.name IN ('myTV') AND tvtpl.templateid =