【问题标题】:With TYPO3 tx_news, how to combine TS and Flexform使用 TYPO3 tx_news,如何结合 TS 和 Flexform
【发布时间】:2015-05-26 15:01:51
【问题描述】:

我有一个几乎未配置的 flexform(仅将可切换控制器操作设置为“列表”),我想通过 TypoScript 进行配置,例如像这样:

plugin.tx_news {
    settings {
        pluginType = news-list
        limit = 999
        orderBy = datetime
        orderDirection = desc
        startingpoint = {$pidNewsStorage}
        detailPid = {$pidNewsDetail}
        archiveRestriction = active
        categories = 24
        categoryConjunction = and
    }
}

TS 包含在页面设置中,并且属性在 TSOB 中正确显示。

奇怪的是,并非所有设置都有效(用于流体的自定义设置 pluginType 有效,而 detailPid 则无效)。 “工作”是指覆盖 flexform 中的空设置。

我在根页面上设置的一些默认设置适用。

我在哪里可以看?

【问题讨论】:

  • 对于第一部分,检查plugin.tx_news.settings. detailPid=123 是否显示任何内容,也许您还没有声明{$pidNewsDetail}
  • 我想就是这样!谢谢!
  • 啊,不 :-) 还有一些像archiveRestriction = active 这样的不变的东西,或者类别不启动

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


【解决方案1】:

您还可以在此处添加要从打字稿中覆盖的字段

plugin.tx_news.settings.overrideFlexformSettingsIfEmpty = cropMaxCharacters,dateField,timeRestriction,orderBy,orderDirection,backPid,listPid,startingpoint,recursive,list.paginate.itemsPerPage,list.paginate.templatePath,templateLayout

【讨论】:

    猜你喜欢
    • 2013-02-19
    • 1970-01-01
    • 1970-01-01
    • 2017-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多