<![CDATA[ Image Path from TVImage - My Forums]]> https://forums.modx.com/thread/?thread=95935 <![CDATA[Image Path from TVImage]]> https://forums.modx.com/thread/95935/image-path-from-tvimage#dis-post-519240
I'm trying to extract just the image path to use for open graph in the head section of my templates - anyone got an ideas as to how I would achieve this?]]>
chrisandy Jan 26, 2015, 02:49 PM https://forums.modx.com/thread/95935/image-path-from-tvimage#dis-post-519240
<![CDATA[Re: Image Path from TVImage]]> https://forums.modx.com/thread/95935/image-path-from-tvimage#dis-post-519672 getField

Revo: fastField]]>
iusemodx Feb 01, 2015, 04:13 PM https://forums.modx.com/thread/95935/image-path-from-tvimage#dis-post-519672
<![CDATA[Re: Image Path from TVImage]]> https://forums.modx.com/thread/95935/image-path-from-tvimage#dis-post-519664 chrisandy Feb 01, 2015, 10:36 AM https://forums.modx.com/thread/95935/image-path-from-tvimage#dis-post-519664 <![CDATA[Re: Image Path from TVImage (Best Answer)]]> https://forums.modx.com/thread/95935/image-path-from-tvimage#dis-post-519297
$tv = $modx->getObject('modTemplateVar',array('name'=> 'youTVname'));
return $tv->getValue($modx->resource->get('id'));


and then invoke in your template:
[[rawValue]]
]]>
whitebyte Jan 27, 2015, 05:58 AM https://forums.modx.com/thread/95935/image-path-from-tvimage#dis-post-519297