#60171Recursive content crashes with Text / Pics element
Description
For a single page, I needed to display the content of pages and subpages with this TS code :
lib.single_page = CONTENT
lib.single_page {
table = pages
select.orderBy = sorting
renderObj = COA
renderObj {
10 = CONTENT
10 {
table = tt_content
select {
pidInList.field = uid
}
wrap = |
}
20 = CONTENT
20{
table = pages
select{
pidInList.field = uid
}
renderObj = COA
renderObj{
10 = CONTENT
10 {
table = tt_content
select {
pidInList.field = uid
}
wrap = |
}
}
}
}
}
It works fine, but it crashes only when a text/pic element is found in a subpage (in the “20.10” of the COA).
I patch the problem changing the line 727 in /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php :
if (is_array($old_conf) && count($old_conf)) {
with this line :
if (is_array($old_conf) && count($old_conf) && !empty($conf)) {
But there is maybe a better solution :)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.