Project

General

Profile

Actions

Feature #99036

closed

Make it possible to localize the placeholder and / or default field in TCA

Added by Sybille Peters about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2022-11-10
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
tca, formengine, backend usability, localization
Complexity:
Sprint Focus:

Description

The example in the docs shows that it is possible to use a the title of a field for the placeholder (which can be localized): https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/textDefault.html#placeholder

Link was broken, see https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/CommonProperties/Placeholder.html

As far as I know, it is not possible to use localized string notation (e.g. with LLL:EXT:... notation) for the placeholder or the default value .

But, especially when using flexforms, you might often not be using database tables / fields for the fields and there are other fields where it would make sense to show a localized placeholder or a localized default text string .

<settings.msgAfterEmailSent>
  <TCEforms>
    <label>...</label>
      <config>
        <type>text</type>
        <!-- it is not possible to localize placeholder -->
        <!-- 
        <placeholder>LLL:EXT:studipol/Resources/Private/Language/locallang.xlf:settings.msgAfterEmailSent</placeholder>
        -->
        <placeholder>You should receive a confirmation email from us in a few minutes. Please check your spam folder, if not.</placeholder>
        <rows>2</rows>
      </config>
   </TCEforms>
</settings.msgAfterEmailSent>

Versions

  • using TYPO3 11.5.18
Actions

Also available in: Atom PDF