【问题标题】:Why is modx getResources and phpthumbof showing the same thumb nail for different resources?为什么 modx getResources 和 phpthumbof 为不同的资源显示相同的缩略图?
【发布时间】:2014-10-17 10:31:51
【问题描述】:

我有一个 getResources 调用,在我的主页上显示 6 个项目:

[[!getResources?
  &tpl=`homepageInventoryCellTpl`
  &parents=`4`
  &resources=`-33`
  &depth=`10`
  &limit=`6`
  &includeContent=`1`
  &includeTVs=`1`
  &processTVs=`0`
  &hideContainers=`1`
  &showHidden=`1`
  &debug=`0`
  &sortbyTV=`vehicleonhomepage`
  &sortDirTV=`DESC`
  ]]

它确实可以显示 6 个拇指 [对于车辆],但它为每辆车显示相同的拇指!

输出标签如下:

<img class="img-responsive" 
src="
[[!phpthumbof? 
&input=`[[!++gallery.files_url]][[!getgalleryAlbumCover? 
&id=`[[!+tv.vehiclegallery]]`]]` 
&options=`&w=300`
]]" 
/>

请注意,没有任何内容被缓存 [!]

  • 如果我删除 phpthumbof 位,getResources 确实可以正常工作并返回六个不同的图像
  • 我已经多次清除所有不同的缓存
  • [[!++gallery.files_url]] 只返回图库路径 [/assets/gallery/]
  • [[!getgalleryAlbumCover? &id=`[[!+tv.vehiclegallery]] 返回专辑封面的实际名称
  • /assets/components/gallery/cache/ 目录是可写的。

为什么所有 6 辆车都显示相同的拇指?

【问题讨论】:

    标签: modx-revolution phpthumb modx-getresources


    【解决方案1】:

    我遇到了同样的问题。最后我删除了 phpPhumbOf 并安装了 pThumb 并且问题消失了。

    【讨论】:

      猜你喜欢
      • 2014-02-12
      • 2016-06-13
      • 2013-11-11
      • 2022-01-26
      • 2019-07-30
      • 2016-04-18
      • 2011-01-15
      • 1970-01-01
      • 2014-12-29
      相关资源
      最近更新 更多