Bug #79834

Suggestions with "placeholder" fetches first result in database

Added by Tizian Schmidlin almost 3 years ago. Updated 7 months ago.

Should have
FormEngine aka TCEforms
Start date:
Due date:
% Done:


TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


Hello there,

when using placeholders for fields (infamously well known for it's use in file description/title/alternative in textpic elements), it may happen that a suggestion for another language is shown instead of the language of the currently related record.

This can be recreated by doing the following:
- upload an image file
- create meta information in a translation
- create any additional metadata information for the default language (mind the order here)
- create a textpic element and link the file
- in the original language you'll see the alternative text of the translation shown as placeholder

In the frontend, everything is fine in the end, since the relation is properly resolved, but in the backend, redactors are often confused when this happens, as this isn't a behavior they'd expect.

The reason why this happens lays in how the placeholder is generated in backend/Classes/Form/FormDataProvider/TcaInputPlaceholder.php.

I could not exactly figure out where this happens, but pretty well why.

Since the TCA definition for the placeholder is __row|uid_local|metadata|alternative (which is pretty clever and elegant IMHO) there is no way, internally, to know the language of the parent and therefore get the proper language, but I think that it's in the placeholder where this should be implemented somehow.

Please let me know if you need anymore information.


Related issues

Related to TYPO3 Core - Bug #65059: Non-translated FAL metadata appears as UID-list in linked record New 2015-02-13


#1 Updated by Riccardo De Contardi about 2 years ago

Still present on 9.0.0-dev (latest master) - only the placeholder are affected; the information for the correct language are shown in frontend

#2 Updated by Riccardo De Contardi about 2 years ago

  • Related to Bug #65059: Non-translated FAL metadata appears as UID-list in linked record added

#3 Updated by Benni Mack 7 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

Also available in: Atom PDF