Ok. Here is the array output after removing the output tpl. As you can see it is grabbing the image. Still unclear what is happening in the output tpl that suppresses the image. I've tried taking the tv prefix out of the tv name in the output tpl. Thanks.
Let me pivot just a bit. Assume that the url link to the image I want to get with getResource is in the content field of the child resource. How would I get the link to the image url without getting the rest of the text in the content field? Again, thanks to all for their help. The Modx community is the primary reason I have stuck with Modx since leaving Drupal.
Quote from: scottmccullough at Dec 03, 2012, 12:44 PM
Let me pivot just a bit. Assume that the url link to the image I want to get with getResource is in the content field of the child resource. How would I get the link to the image url without getting the rest of the text in the content field? Again, thanks to all for their help. The Modx community is the primary reason I have stuck with Modx since leaving Drupal.
good question... but you can't have a part of the content field without using some extra code => in this case maybe i would use a js to extract the image src and hide the rest of html.. but this is bad.. and would do that only if i have 10k child to change..
Templates variables are here for this job : separate content in variable so you can reuse them individually in other part.
enjoy your modx trip.
(can you mark the post as solved if its ok?)
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save