From 83ff9d3272d21b47d065cb489e176d2b0019394f Mon Sep 17 00:00:00 2001
From: Sebastian Klein <laitnin@gmx.net>
Date: Wed, 22 Mar 2023 20:07:58 +0100
Subject: [PATCH] [BUGFIX] Respect "sectionIndex" setting in section menus

The content element "Section index of subpages from selected pages"
now also respects the setting "Show in Section Menus".

Resolves: #100262
Releases: main, 11.5
Change-Id: I92c52cd48c0732410ded00c508fdd16633d67035
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78299
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 .../TypoScript/ContentElement/MenuSectionPages.typoscript        | 1 +
 1 file changed, 1 insertion(+)

diff --git a/typo3/sysext/fluid_styled_content/Configuration/TypoScript/ContentElement/MenuSectionPages.typoscript b/typo3/sysext/fluid_styled_content/Configuration/TypoScript/ContentElement/MenuSectionPages.typoscript
index faadffa270eb..68272c3827c0 100644
--- a/typo3/sysext/fluid_styled_content/Configuration/TypoScript/ContentElement/MenuSectionPages.typoscript
+++ b/typo3/sysext/fluid_styled_content/Configuration/TypoScript/ContentElement/MenuSectionPages.typoscript
@@ -20,6 +20,7 @@ tt_content.menu_section_pages {
                 20 {
                     table = tt_content
                     pidInList.field = uid
+                    where = {#sectionIndex} = 1
                     orderBy = sorting
                     as = content
                     dataProcessing {
-- 
GitLab