【问题标题】:TypoScript Datapocessor seems not working if ContentElement is inserted as reference如果将 ContentElement 作为参考插入,TypoScript Datapocessor 似乎不起作用
【发布时间】:2017-02-20 19:40:37
【问题描述】:

我有以下来自 TYPO3 扩展“bootstrap_package”的 sn-p,可在 TYPO3 扩展存储库中获得。

dataProcessing {
    10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
    10 {
        table = tx_bootstrappackage_accordion_item
        where {
            data = field:uid
            intval = 1
            wrap = tt_content=|
        }
        orderBy = sorting
        dataProcessing {
            10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
            10 {
                references.fieldName = media
            }
        }
    }
}

它从属于 Accordion 内容元素的表中获取记录(Accordion 项目)。那工作正常。 但是当我在页面的某处插入对该 Accordion 的引用时,将不会获取记录。

此代码需要如何更改才能正常工作?

非常感谢。

【问题讨论】:

    标签: typoscript typo3-7.6.x


    【解决方案1】:

    我这样使用它:(pidInList.field = pid

    tt_content.xy =< lib.default
    tt_content.xy {
        templateName = CE_Stage
        dataProcessing {
            30 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
            30 {
                table = tx_xy_slider
                pidInList.field = pid
                where {
                    data = field:uid
                    intval = 1
                    wrap = tt_content=|
                }
    
                orderBy = sorting
                as = slides
                dataProcessing {
                    10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
                    10 {
                        references.fieldName = image
                        as = images
                    }
                }
            }
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2021-01-07
      • 2015-10-21
      • 2018-10-03
      • 2014-04-19
      • 2013-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多