Return to Snippet

Revision: 43914
at April 3, 2011 02:09 by madc


Updated Code
menus.langMenu = HMENU
menus.langMenu {
	special = language
	special.value = 0,1,2
	special.normalWhenNoLanguage = 0
	wrap =<ul id="langmenu">|</ul>
	
	1 = TMENU
	1 {
		noBlur = 1

		NO = 1
		NO {
			linkWrap =<li>|</li>
			stdWrap.override = Deutsch || English || Slovenš�ina
			doNotLinkIt = 1
			stdWrap.typolink.parameter.data = page:uid
			stdWrap.typolink.additionalParams = &L=0 || &L=1 || &L=2
			stdWrap.typolink.addQueryString = 1
			stdWrap.typolink.addQueryString.exclude = L,id,cHash,no_cache
			stdWrap.typolink.addQueryString.method = GET
			stdWrap.typolink.useCacheHash = 1
			stdWrap.typolink.no_cache = 0
			stdWrap.typolink.ATagParams = class="de" || class="gb" || class="si"
		}
	}
}

[globalVar = GP:L =1]
	menus.langMenu.1.NO.stdWrap.override = English || Deutsch || Slovenš�ina
	menus.langMenu.1.NO.stdWrap.typolink.additionalParams = &L=1 || &L=0 || &L=2
	menus.langMenu.1.NO.stdWrap.typolink.ATagParams = class="gb" || class="de" || class="si"
[globalVar = GP:L =2]
	menus.langMenu.1.NO.stdWrap.override = Slovenš�ina || Deutsch || English
	menus.langMenu.1.NO.stdWrap.typolink.additionalParams = &L=2 || &L=0 || &L=1
	menus.langMenu.1.NO.stdWrap.typolink.ATagParams = class="si" || class="de" || class="gb"
[global]

menus.langMenu.1 {
	# Aktive Sprache
	ACT <.NO
	ACT.linkWrap =<li class="active">|</li>
	# NO + �bersetzung nicht vorhanden
	USERDEF1 <.NO
	USERDEF1.linkWrap =<li class="notrans">|</li>
	# ACT + �bersetzung nicht vorhanden
	USERDEF2 < .ACT
	USERDEF2.linkWrap =<li class="active notrans">|</li>
}

Revision: 43913
at April 3, 2011 02:07 by madc


Initial Code
menus.langMenu = HMENU
menus.langMenu {
	special = language
	special.value = 0,1,2
	special.normalWhenNoLanguage = 0
	wrap =<ul id="langmenu">|</ul>
	
	1 = TMENU
	1 {
		noBlur = 1

		NO = 1
		NO {
			linkWrap =<li>|</li>
			stdWrap.override = Deutsch || English || Slovenščina
			doNotLinkIt = 1
			stdWrap.typolink.parameter.data = page:uid
			stdWrap.typolink.additionalParams = &L=0 || &L=1 || &L=2
			stdWrap.typolink.addQueryString = 1
			stdWrap.typolink.addQueryString.exclude = L,id,cHash,no_cache
			stdWrap.typolink.addQueryString.method = GET
			stdWrap.typolink.useCacheHash = 1
			stdWrap.typolink.no_cache = 0
			stdWrap.typolink.ATagParams = class="de" || class="gb" || class="si"
		}
	}
}

[globalVar = GP:L =1]
	menus.langMenu.1.NO.stdWrap.override = English || Deutsch || Slovenščina
	menus.langMenu.1.NO.stdWrap.typolink.additionalParams = &L=1 || &L=0 || &L=2
	menus.langMenu.1.NO.stdWrap.typolink.ATagParams = class="gb" || class="de" || class="si"
[globalVar = GP:L =2]
	menus.langMenu.1.NO.stdWrap.override = Slovenščina || Deutsch || English
	menus.langMenu.1.NO.stdWrap.typolink.additionalParams = &L=2 || &L=0 || &L=1
	menus.langMenu.1.NO.stdWrap.typolink.ATagParams = class="si" || class="de" || class="gb"
[global]

menus.langMenu.1 {
	# Aktive Sprache
	ACT <.NO
	ACT.linkWrap =<li class="active">|</li>
	# NO + Ãœbersetzung nicht vorhanden
	USERDEF1 <.NO
	USERDEF1.linkWrap =<li class="notrans">|</li>
	# ACT + Ãœbersetzung nicht vorhanden
	USERDEF2 < .ACT
	USERDEF2.linkWrap =<li class="active notrans">|</li>
}

Initial URL
http://madcity.at

Initial Description
tba.

Based on "A nice Languagemenu made with TS" by typo3-book.com ( http://www.typo3-book.com/blog/index.php/2008/03/28/a-nice-languagemenu-made-with-ts/ )

Initial Title
Self-sorting TypoScript language menu

Initial Tags

                                

Initial Language
TYPO3