Project

General

Profile

Actions

Bug #95150

closed

Menu content elements: categories not available in frontend

Added by Florian Seirer over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
Fluid Styled Content
Target version:
-
Start date:
2021-09-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I'd like to use menu_pages or menu_subpages to show a sitemap in the frontend.
The pages have categories defined, but the page object in the frontend doesn't list them.
Only the number of defined categories is shown in {page.data.categories}, instead of an array of the defined categories.

Default template (MenuPages.html) with additional debug viewhelpers:

    <f:if condition="{menu}">
        <ul>
            <f:for each="{menu}" as="page">
                <f:debug inline="1" title="Menu object">{page}</f:debug>
                <f:debug inline="1" title="Categories">{page.data.categories}</f:debug>
                <li>
                    <a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
                        <span>{page.title}</span>
                    </a>
                </li>
            </f:for>
        </ul>
    </f:if>


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #82010: DataProcessor to fetch categories + records with the same categoryUnder ReviewJo Hasenau2017-07-31

Actions
Actions

Also available in: Atom PDF