0

回到 TYPO3 4.5 中,TSFE:lastImgResourceInfo|filesize可以访问 TypoScript 中最后一个渲染图像的文件大小。TYPO3 7.6.x 或 8.7.x 中是否有等价物?

我在这里需要它:

70 = CONTENT
70 {
  table = tt_content
  select {
    orderBy = sorting
    where = colPos=0
    pidInList.data = field : content_from_pid
    max = 1
  }
  wrap = <enclosure type="image/jpeg" url="{$rssFeed.feedBaseUrl}|" />

  renderObj = COA
  renderObj {
    10 = FILES
    10 {
      references {
        table = tt_content
        uid.data = uid
        fieldName = image
      }
      renderObj = COA
      renderObj {
        10 = IMG_RESOURCE
        10 {
          file {
            import.data = file:current:originalUid
            width.field = imagewidth
            maxW = {$rssFeed.feedImageMaxWidth}
          }
        }

        20 = TEXT
        # this used to work in TYPO3 4.5
        20.data = TSFE:lastImgResourceInfo|filesize
        20.wrap = " length="|
      }
    }
  }
}
4

2 回答 2

0

应该是TSFE:lastImageInfo,即使在TYPO3 4.5中。似乎在以后的版本中也设置了。

于 2017-10-29T23:34:41.537 回答
0

TSFE:lastImgResourceInfo在 7.x 及更高版本中仍然存在,但该字段filesize已消失。我在它所在的代码中找不到任何信息。

于 2017-10-30T05:23:47.953 回答