0

我有一个使用记录字段的自定义内容元素。如何将此字段中的记录放入我的流体模板中?

我试过这样做:

ext_example < lib.contentElement
ext_example {
    templateName = MyTemplate
    dataProcessing {
        10 = TYPO3\CMS\Frontend\DataProcessing\SplitProcessor
        10 {
          fieldName = records
          delimiter = ,
        }
    }
}

但它给出了一个这样的数组:'tt_content_26,tt_content_30' 如何删除前缀tt_content_以便我有一个可以使用的 uid 数组?

4

1 回答 1

0

默认情况下,记录字段仅允许“tt_content”记录。因此,您在此字段中有一个 tt_content 记录的 UID 列表,但您在pid InList中使用这些UID 。

于 2019-10-18T09:10:37.897 回答