Skip to content

Instantly share code, notes, and snippets.

View uschmelzer's full-sized avatar

Uwe Schmelzer uschmelzer

  • SIndelfingen, Germany
View GitHub Profile
@uschmelzer
uschmelzer / Simple language switcher
Created May 10, 2015 01:28
Simple language switcher
<f:layout name="Page"/>
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:section name="SimpleLanguageSwitcher">
<!-- Get current language id, e.g. 0, 1 -->
<!-- In my case 0 = German, 1 = English -->
<f:if condition="{v:page.language(normalWhenNoLanguage: 1)} == 1">