搜索到的新闻类别菜单的拼写错误

typoscript for a news category menu searched

我正在搜索包含子类别和相关项目数量的新闻类别菜单。

现有: https://www.fiedomedia.de/news/artikel/news-kategorien-mit-counter/

这个打字错误似乎在 TYPO3 8.7.1 中不起作用

项目数量错误,每个主类别下的子类别重复。

有人有可用的脚本吗?

您可以调整类别的流体模板 https://github.com/georgringer/news/blob/master/Resources/Private/Templates/Category/List.html 并在那里使用 count-viewhelper https://fluidtypo3.org/viewhelpers/fluid/master/CountViewHelper.html

前段时间我用 dateMenu 做了类似的事情:

<f:section name="content">
    <ul class="vertical menu">
        <f:for each="{data.single}" key="year" as="months">
            <li>
                <a>{year}</a>
                <ul class="vertical menu nested">
                    <f:for each="{months}" key="month" as="count">
                        <f:if condition="{0:year, 1:month} == 
{0:overwriteDemand.year, 1:overwriteDemand.month}">
                            <f:then>
                                <li class="item active">
                            </f:then>
                            <f:else>
                                <li class="item">
                            </f:else>
                        </f:if>
                            <f:link.action pageUid="{listPid}" arguments="
{overwriteDemand:{year: year, month: month}}"><f:translate key="month.
{month}" /> {year}
({count})</f:link.action>

                        </li>
                    </f:for>
                </ul>
            </li>
        </f:for>
    </ul>
</f:section>