TYPO3 有类别的菜单?

问题描述

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

我一直在尝试不同的 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
                 }
             }
        }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)