MODX文章:无法用getResources检索文章图像

问题描述:

我正在运行带有Articles和getResources的MODX Revo 2.3.2。在我的起始页面上,我不想通过调用getResources来显示最近的4篇文章。但是,它不显示图像。试图输出它没有phpThumbof,但它根本不工作。MODX文章:无法用getResources检索文章图像

[[getResources? 
    &parents=`11` 
    &tpl=`articleRowTpl` 
    &includeTVs=`1` 
    &processTVs=`1` 
    &showHidden=`1` 
    &limit=`4` 
]] 

articleRowTpl看起来是这样的:

<article class="blog-item blog-full-width"> 
    <div class="blog-thumbnail"> 
     <img alt="" src="[[+tv.articleImage:phpthumbof=`w=750&h=200&zc=1`]]"> 
    </div> 
    <div class="blog-full-width-date"> 
     <p class="day">[[+publishedon:strtotime:date=`%d`]]</p><p class="monthyear">[[+publishedon:strtotime:date=`%b %Y`]]</p> 
    </div> 
    <div class="blog-content"> 
     <h4 class="blog-title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h4> 

     <p>[[+introtext:default=`[[+content:ellipsis=`400`]]`]]</p> 
     <a href="[[~[[+id]]]]" class="btn btn-default btn-mini btn-rounded">Mehr lesen...</a> 
    </div> 
</article> 

有没有错误,它只是不输出的图像路径。我再次检查占位符和前缀,默认为tv.,如文档所述。

好吧,找到它。我只是删除getResources的TV-前缀与

tvPrefix=`` 

,现在我可以[[+articleImage]]访问电视。