Typo3 Language switch inside DCE Fluidtemplate
<a href="{dce:typolinkUrl(parameter:'{site.product.contacturl}')}" title="" class="button">
<f:if condition="{TSFE.sys_language_uid} == 1">
<f:then>
Kontakt aufnehmen
</f:then>
<f:else>
Contact
</f:else>
</f:if>
</a>
Written by Benedikt Lang
Related protips
1 Response
It would be better to use f:translate and link with LLL: to a locallang xml, to translate stuff. This code will just work if german has been defined as syslanguageuid 1. The translate viewhelper will automatically respect what you have configured in typoscript.
Cheers,
Armin Vieweg
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#