Typo3 – Language Menu – Only Show the inactive language

by Andrei Eftimie

If you need your language HMENU to not show the currently active language, you can easily customise it with a simple TS condition checking the active language.


# Lang
temp.lang = HMENU
temp.lang {
  special = language
  special.value = 1
  wrap = <div class="lang">|</div>

  1 = TMENU
  1 {
    NO = 1
    NO.stdWrap.cObject = TEXT
    NO.stdWrap.cObject.value = I NORKSIN
    NO.ATagParams = class="no"
  }
}

[globalVar = GP:L = 1]
temp.lang {
  special.value = 0
  1 {
    NO.stdWrap.cObject.value = IN ENGLISH
    NO.ATagParams = class="en"
  }
}
[global]