Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page.resources.fal does not fetch the correct resource non default language #1690

Open
lygie2221 opened this issue Oct 1, 2020 · 3 comments

Comments

@lygie2221
Copy link

lygie2221 commented Oct 1, 2020

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.

@lygie2221
Copy link
Author

I see, this is a duplicate of
#1670

@swisschocolate-zz
Copy link

+1
Thx lygie2221 for the hack.

@pulponair
Copy link
Contributor

Any news? No solution for 8.7 yet. Had to downgrade to vhs 6.0.0 :(((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants