Issue Bug Closed

#50873sectionIndex menu is empty when the page is not in menu

Rémy DANIEL 08/07/13, 14:34 updated 10/19/17, 21:14

Description

In AbstractMenuContentObject::sectionIndex(), sectionIndex menu items are first based on the page record, and then overridden with tt_content properties.

But if $basePageRow has the ‘nav_hide’ property set to 1, then the resulting menuItem will systematically failed in AbstractMenuContentObject::filterMenuPages().

We have already the tt_content’s ‘sectionIndex’ property in order to exclude a tt_content element from a sectionIndex menu, so I see no reason to not to unset ‘nav_hide’.

To fix that, we need to force ‘nav_hide’ on the menuItem to 0 in AbstractMenuContentObject::sectionIndex().

Patch included, tested on TYPO3 6.1 (should be OK on earlier version)

Reviews 1