TYPO3 有类别的菜单?

TYPO3 Menu with categories?

如何将类别添加到菜单元素的每个页面?

我一直在尝试 DatabaseQueryProcessor 的不同组合,但数组是空的。

这是我目前根据其他示例得出的结果:

dataProcessing {
        10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
        10 {
             special = list
             special.value.field = pages
             levels = 2
             as = menuItems
             expandAll = 1
             includeNotInMenu = 1
             titleField = nav_title // title
             dataProcessing {
                 10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
                 10 {
                     references.fieldName = media
                 }
                 20 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
                 20 {
                        if.isTrue.field = categories
                        table = sys_category
                        pidInList = root,-1
                        selectFields = sys_category.*
                        where.data = field:_ORIG_uid // field:uid
                        as = categories
                 }
             }
        }
}

pidInList 需要是存储类别的页面。

20 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
20 {
        if.isTrue.field = categories
        table = sys_category
        selectFields = sys_category.*
        pidInList = 55
        recursive = 999
        join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
        where.data = field:_ORIG_uid // field:uid
        where.intval = 1
        where.wrap = sys_category_record_mm.uid_foreign=|
        as = categories
}