TYPO3新闻标题与MenuProcessor面包屑

时间:2018-10-31 12:00:55

标签: typo3 typoscript breadcrumbs data-processing tx-news

是否可以使用MenuProcessor在面包屑中显示当前新闻标题?

我已经用DatabaseQueryProcessor尝试了一些,但是没有得到数据。

有人为我提供了工作示例或教程吗?

此刻我只有这个:

temp.breadcrumb = FLUIDTEMPLATE
temp.breadcrumb {
    templateName = breadcrumb
    templateRootPaths {
        10 = fileadmin/resources/private/template/menu/
    }
    partialRootPaths {
        10 = fileadmin/resources/private/template/partials/
    }
    dataProcessing {
        10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
        10 {
            special = rootline
            special.range = 0|-1
            includeNotInMenu = 1
            as = menuBreadcrumb
        }
        dataProcessing {
            10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
            10 {
                if.isTrue.field = records
                table = tx_news_domain_model_news
            }
        }
    }
}

0 个答案:

没有答案