Skip to content
Snippets Groups Projects
Commit 04e68467 authored by Mathias Brodala's avatar Mathias Brodala Committed by Susanne Moog
Browse files

[FOLLOWUP][FEATURE] EXT:form - support translation arguments

Add missing YAML for TypoLink example.

Resolves: #81363
Releases: master
Change-Id: I1efc0ab812f96883a938326fb229f1536b7345e0
Reviewed-on: https://review.typo3.org/54989


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent 11bd3b81
No related merge requests found
......@@ -10,7 +10,9 @@ Description
===========
Passing arguments to form element property translations is now supported to enrich
translations with variable values:
translations with variable values.
This works for simple, static values purely in YAML:
.. code-block:: yaml
......@@ -27,7 +29,19 @@ translations with variable values:
- useful
Alternatively, translation arguments can be set via :typoscript:`formDefinitionOverrides`
in TypoScript:
in TypoScript. A common usecase is a checkbox for user confirmation linking to details of
the topic:
.. code-block:: yaml
renderables:
fieldWithTranslationArguments:
identifier: field-with-translation-arguments
type: Checkbox
label: I agree to the <a href="%s">terms and conditions</a>
renderingOptions:
translation:
translationFile: path/to/locallang.xlf
.. code-block: typoscript
......@@ -45,6 +59,7 @@ in TypoScript:
label {
0 = TEXT
0.typolink {
# Terms and conditions page, could be set also via TypoScript constants
parameter = 42
returnLast = url
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment