【问题标题】:Inserting news teaser inside FalMediaContainer template在 FalMediaContainer 模板中插入新闻预告片
【发布时间】:2016-02-08 20:34:21
【问题描述】:

是否可以将 {newsItem.teaser} 插入 FalMediaContainer.html 中?我是否需要在流体模板中插入更多内容才能在输出新闻预告片中看到?

感谢您的帮助

【问题讨论】:

    标签: typo3 fluid typo3-6.2.x tx-news


    【解决方案1】:

    这当然是可能的,但是您还需要更改Detail.html

    请换行

    <f:render partial="Detail/FalMediaContainer" arguments="{media: newsItem.falMedia, settings:settings}" />
    

    进入

    <f:render partial="Detail/FalMediaContainer" arguments="{newsItem:newsItem, media: newsItem.falMedia, settings:settings}" />
    

    之后您可以在部分中使用{newsItem}also 的任何属性!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-20
      • 1970-01-01
      相关资源
      最近更新 更多