Project

General

Profile

Actions

Bug #50873

closed

sectionIndex menu is empty when the page is not in menu

Added by Rémy DANIEL over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2013-08-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)


Files

patch_AbstractMenuContentObject.php (558 Bytes) patch_AbstractMenuContentObject.php Rémy DANIEL, 2013-08-07 14:34
patch2_AbstractMenuContentObject.php (788 Bytes) patch2_AbstractMenuContentObject.php Alexander von Drach, 2014-05-20 00:47
issue_50873.patch (2.74 KB) issue_50873.patch an approach using new TS settings Alexander von Drach, 2014-05-20 13:55
Actions

Also available in: Atom PDF