Project

General

Profile

Actions

Bug #103017

open

MenuProcessor is not showing access restricted pages, when all subpages are access restricted

Added by Sabrina Zwirner 10 months ago. Updated about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Start date:
2024-02-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
MenuProcessor, showAccessRestrictedPages
Complexity:
Is Regression:
Sprint Focus:

Description

Hello,
I user the MenuProcessor to generate a menu that shows also access restricted pages.
Code looks like this:

 11 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
            11 {
                levels = 3
                includeSpacer = 1
                as = mainNavigation
                showAccessRestrictedPages = 1

                dataProcessing {
                    10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
                    10 {
                        references.fieldName = media
                        as = navIcon
                    }
                }
            }

Now I have a Page "Products & Materials" that is not protected.
This page has two Subpages: "Shop" and "Materials", that are access protected.

The Menu is rendering "Products & Materials" but does not show the childrens "Shop" and "Materials".

As soon as I add at least one subpage that is not access protected,
all children will get rendered as they should.

Actions

Also available in: Atom PDF