Issue Bug Resolved

#100096extendToSubpages has no effect for subpages in menus

Patrick Lenk 03/06/23, 12:22 updated 11/06/26, 22:15

Description

In an instance that has been updated from TYPO3 10.4.36 to 11.5.24, subpages of an access protected page with the extendToSubpages option enabled are still visible in a frontend menu. This bug occurred once in TYPO3 9.5.12 and has been resolved, see #89989.

backend pagetree example:

  • Root
    • Public
    • Secure (Usergroup Access Rights: usergroup, Extend to Subpages: enabled, Page enabled in menus: disabled)
      • Mainmenu Parentpage (Usergroup Access Rights: Show at any login, Extend to Subpages: enabled, Page enabled in menus: disabled) <<< {$mainmenuPid}
        • Subpage 1 (Page enabled in menus: enabled)
        • Subpage 2 (Page enabled in menus: enabled)
          • Sub Subpage 2 (Page enabled in menus: enabled)
            …

menu processor:

page.10.dataProcessing.30 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
page.10.dataProcessing.30 {
    special = directory
    special.value = {$mainmenuPid}
    levels = 4
    expandAll = 1
    includeSpacer = 1
    titleField = nav_title // title
    as = mainmenu
}

To hide the subpages of “Mainmenu Parentpage”, an “Usergroup Access Rights” item needs to selected. The visibility of the subpages should be taken over from the parent page by extendToSubpages.

Reviews 2

History 412

  1. Sebastian Klein commented <span data-processor="relativetime" data-value="2023-04-12T13:55:28+00:00" > 04/12/23, 13:55 </span>

    We have a similar page tree setup in TYPO3 v11 and can confirm the issue.

  2. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-06T22:15:10+00:00" > 11/06/26, 22:15 </span>

    Applied in changeset commit:a05d0a1813cfa167b613cd4f43085947f7aad608.