Skip to content

Instantly share code, notes, and snippets.

@lorenzulrich
Created March 10, 2015 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzulrich/71735ce17ca2206c29cc to your computer and use it in GitHub Desktop.
Save lorenzulrich/71735ce17ca2206c29cc to your computer and use it in GitHub Desktop.
lib.menu.language = HMENU
lib.menu.language {
special = language
special.value = 0,1
1 = TMENU
1 {
# Remove the (old) default behaviour which adds onfocus="blurLink(this);" to all links
noBlur = 1
NO = 1
NO {
# Override the standard menu item value (which is the page title) with our own cObject
stdWrap.cObject = TEXT
# Use the TypoScript option split function to display different values for the first and second item
stdWrap.cObject.value = DE || EN
}
ACT < .NO
ACT {
ATagParams = class="selected"
}
# If there is no translation, no link is rendered
USERDEF1 = 1
USERDEF1.doNotShowLink = 1
USERDEF2 < .USERDEF1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment