如何在分配给当前页面的typoscript中获取媒体内容?

时间:2016-06-03 08:21:40

标签: typo3 typoscript

我有3个图片分配到我的页面,我试图将它们放入typoscript中的变量。

这是我的代码:

temp.pics = FILES
temp.pics {
  references {
    table = pages
    uid.data = page:uid
    fieldName = media
  }
  renderObj = IMAGE
  renderObj {
    file.import.data = file:current:originalUid
    altText.data = file:current:title
    wrap = <li>|</li>
  }
stdWrap.wrap = <ul id="Gallery" class="gallery">|</ul>
}

page.10 {
  variables {
    pics < temp.pics
  }
}

在我的HTML布局中,我只得到:

<ul id="Gallery" class="gallery"></ul>

有人知道为什么它是空的吗?

0 个答案:

没有答案