Skip to content

section_menu should respect content from pid feature #1609

@dkd-hauser

Description

@dkd-hauser

Bug Report

Prerequisites

  • checked in bs package for typo3 v12 and v13

Description

if you show content with the content from pid feature the section menu on the reference page is empty

Steps to Reproduce

  1. add a section menu to a page wiith contents
  2. add a mirror page and set content from pid to target page
  3. the section menu on the mirror page will be empty

Expected behavior

the mirror page should display sections

Fix

https://github.com/benjaminkott/bootstrap_package/blob/15.0.4/Configuration/TypoScript/ContentElement/Element/MenuSection.typoscript#L30

@@ -16,7 +16,8 @@
                 20 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
                 20 {
                     table = tt_content
-                    pidInList.field = uid
+                    pidInList.field = content_from_pid
+                    pidInList.ifEmpty.field = uid
                     as = content
                     where = sectionIndex = 1
                     orderBy = sorting

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions