Actions
Bug #94030
closedSecond translation is not shown in BE in Fluid Based Page module
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The new page module does not show more than two languages (original and first translation) because of overwriting the {item} variable in EXT:backend/Resources/Private/Partials/PageLayout/LanguageColumns.html
Perhaps this works if the second translation is based on the first one, but in my case both translations are based on the source language. In this case {item.translations.{languageId}} in line 87 is empty and the content of the second translation doesnt get rendered. This is because {item} in this line is not the source item, but the item if the first translation! This happens because {item} gets overwritten in line 88 and is not reset at the beginning of the <f:for> loop.
Quick fix, that works for me:
<f:for each="{column.items}" as="item" iteration="itemIterator">
<f:variable name="real_item" value="{item}"/>
<tr>
<td class="t3-grid-cell" data-colpos="{column.columnNumber}">
<f:render partial="PageLayout/Record" arguments="{_all}" />
</td>
<f:for each="{languageColumns}" as="languageColumn">
<f:variable name="item" value="{real_item}"/>
Files
Actions