简体   繁体   English

MODX Rev:从电视检索图像

[英]MODX Rev: Retrieving Images from a TV

I'm trying to retrieve an image from a template variable. 我正在尝试从模板变量中检索图像。 However I'm trying to pull the image on a blog template. 但是,我试图将图像拖到博客模板上。 Whenever I go down one level it works without a problem. 每当我下降一个级别时,它都不会出现问题。 I've tried using GetResources and GetResourceField to get the image on the top level but so far no results. 我尝试使用GetResources和GetResourceField来获取顶级图像,但到目前为止没有任何结果。 Here's my code, any suggestions would be great. 这是我的代码,任何建议都很好。

[[getResourceField? &id=`[[*articleImage]]` &isTV=`1` &processTV=`1`]]

[[*articleImage:phpthumbof=`w=120&h=120`]] 

          [[!getResources?
              &showHidden=`1`
              &limit=`4`
              &includeContent=`1`
              &includeTVs=`1` 
              &processTVs=`1`
          ]]

如果要使用getGresources,则应如何尝试在imgBlog块中访问图像:

[[*tv.articleImage:phpthumbof=`w=120&h=120`]] 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM