Tworzę elastyczny element treści.
W moim formularzu strumienia konfiguracji mam pole, w obiekcie, w sekcji. W pliku locallang.xlf mogę oznaczyć obiekt i sekcję, ale nie udało mi się z powodzeniem oznaczyć pola.
Moja konfiguracja szablonu wygląda następująco:
<f:section name="Configuration">
<flux:form id="element">
<flux:form.section name="settings.mysection">
<flux:form.object name="myobject">
<flux:field.input name="myfield" />
</flux:form.object>
</flux:form.section>
</flux:form>
</f:section>
Odpowiednia część mojego pliku locallang.xlf wygląda następująco:
<trans-unit id="flux.element.sections.settings.mysection">
<source>This works</source>
</trans-unit>
<trans-unit id="flux.element.objects.myobject">
<source>This also works</source>
</trans-unit>
<trans-unit id="flux.element.fields.myfield">
<source>This doesn"t work</source>
</trans-unit>
Jakim atrybutem powinien być identyfikator „myfield”?
Odpowiedzi:
1 dla odpowiedzi № 1W Twoim AdditionalConfiguration.php
, dodaj:
$TYPO3_CONF_VARS["BE"]["lang"]["debug"] = true;
Teraz zobaczysz pełne ścieżki etykiet językowych w backend:
flux.element.objects.myobject.myfield
Wygląda na to, że zmieniono to dla TYPO3 8.7 https://forge.typo3.org/issues/71095 do
$TYPO3_CONF_VARS["BE"]["languageDebug"] = true;