benjaminkott / benjaminkott/bootstrap_package
section_menu should respect content from pid feature
- Dominant language
- PHP
- Stars
- 355
- Forks
- 212
- Avg merge
- 1h 4m
- Merged PRs (30d)
- 31
Description
# 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
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.