Skip to content
Snippets Groups Projects
Commit d222e935 authored by Marc Bastian Heinrichs's avatar Marc Bastian Heinrichs Committed by Jigal van Hemert
Browse files

[TASK] Make section index from hidden headers work again

Before version 4.7 you could build up a section index with
links to content elements with hidden headers.
Since version 4.7 elements with a hidden header type are sorted
out for the section index, overriding the extra flag "sectionIndex",
which is especially integrated for this.

This patch adds a extra flag for menu configuration sectionIndex
named "includeHiddenHeaders" to make it possible to re-enable
the behaviour of versions before 4.7.

Resolves: #52928
Related: #31767
Documentation: #53699
Releases: 6.2
Change-Id: Iee7f20cfc317c2b624dfc440811c5edc0a367a1e
Reviewed-on: https://review.typo3.org/24876
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Sebastian Fischer
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
parent e34562ba
Branches
Tags
No related merge requests found
......@@ -1856,7 +1856,7 @@ class AbstractMenuContentObject {
if ($this->mconf['sectionIndex.']['type'] !== 'all') {
$doIncludeInSectionIndex = $row['sectionIndex'] >= 1;
$doHeaderCheck = $this->mconf['sectionIndex.']['type'] === 'header';
$isValidHeader = (int)$row['header_layout'] !== 100 && trim($row['header']) !== '';
$isValidHeader = ((int)$row['header_layout'] !== 100 || !empty($this->mconf['sectionIndex.']['includeHiddenHeaders'])) && trim($row['header']) !== '';
if (!$doIncludeInSectionIndex || $doHeaderCheck && !$isValidHeader) {
continue;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment