vhs
vhs copied to clipboard
page.resources.fal does not fetch the correct resource non default language
Hi there,
there are several bug tickets about issues with fal and translating pages. But all I can find deal with translation handling prior to TYPO3 8.7.
On TYPO 9.5.22, I have a page with resources. The page has a translation. The file resources on the translated page differ from that on the original page.
When I use
<v:page.resources.fal table="pages" field="media" uid="{menuPage.uid}" as="images">
The Images will be fetched from the original page, not the translated.
If I add one line to vhs/Classes/ViewHelpers/Page/Resources/FalViewHelper.php
and instead if writing:
if (is_array($localisation)) {
$record = $localisation;
}
i do
if (is_array($localisation)) {
$record = $localisation;
$record["_LOCALIZED_UID"]=$record["_PAGES_OVERLAY_UID"];
}
Everything works as I would expect.
I see, this is a duplicate of https://github.com/FluidTYPO3/vhs/issues/1670
+1 Thx lygie2221 for the hack.
Any news? No solution for 8.7 yet. Had to downgrade to vhs 6.0.0 :(((