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

Problem with multi-language custom fields in backend preview #341

Open
heinrob opened this issue Feb 10, 2025 · 1 comment
Open

Problem with multi-language custom fields in backend preview #341

heinrob opened this issue Feb 10, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@heinrob
Copy link

heinrob commented Feb 10, 2025

Describe the bug
I have set up a custom PageType with some text fields in a site configuration with multiple languages. Displaying the values in the backend preview works perfectly fine for the default language. However, translating the page and inserting other values still renders the backend preview of the default language while the frontend as well as the rest of the backend display items in the correct language. This also produces an edit link to the wrong language using <be:link.editRecord>. Debugging the data.languageId field always shows 0 regardless of the pages language.

To Reproduce
Steps to reproduce the behavior:

  1. Configure a multi-language site in /config/sites/[main]/config.yaml (https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/SiteHandling/AddLanguages.html)
  2. Configure a custom PageType including a field of type Text or Textarea
  3. Add a backend-preview.html and display the field. Debugging the values is also sufficient: <f:debug>{data}</f:debug>
  4. Add a page of that type in the backend and fill with values
  5. Translate this page to another language and view the rendered backend preview

Expected behavior
The displayed values should show in the correct language and the link to edit the entries should lead to the edit page of the respective language.

Screenshots

Image

Explanation: this is the default title field, so the value for "Title:" should be the same as the headline above in this picture.

TYPO3 Version
13.4.4

Content Blocks Version:
1.1.5 & 1.1.6

@nhovratov nhovratov added the enhancement New feature or request label Feb 10, 2025
@nhovratov
Copy link
Contributor

We will have a look if this is feasible.

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

No branches or pull requests

2 participants