[TYPO3-ttnews] Re: [Typo3-tt-news] Again: single view and language switching, using special = language (SOLUTION)

Sacha Vorbeck Vorbeck at moduleBox.com
Fri Jan 18 07:47:20 CET 2008


Hi,

Robert Lemke schrieb:
> Karsten Dambekalns wrote:
>>>> with tt_news. The problem now is, that we use the HMENU special property
>>>> set to 'language' to build the lang switch for that site.
>>>>
>>>> Is there a way to include the needed parameters for the language menu?
>>>> Has anybody ever done that?
> 
> here is how I solved it at otto.com:
> 
> 
> config.uniqueLinkVars = 1
> 
> lib.topMenu.20  = TEXT
> lib.topMenu.20 {
>    wrap = » |
>    lang.de = english
>    lang.en = deutsch
>    typolink.parameter.data = page:uid
>    typolink.addQueryString = 1
>    typolink.additionalParams = &L=1
> }
> 
> [globalVar = GP:L = 1]
>    lib.topMenu.20.typolink.additionalParams = &L=0
> [global]
> 

has something happened here or do I still have to go Roberts way and set 
up the lang-menu manually instead of using an HMENU with special=language.

I tried it this way:

lib.sprachNavi = COA
lib.sprachNavi {
   10 = HMENU
   10 {
	special = language
	special.value = 2,1,0
	special.normalWhenNoLanguage = 0
	1 = TMENU
	1 {
		# Normal link to language that exists:
		NO = 1
		ACT = 1
		USERDEF1 = 1
		USERDEF2 = 1
		noBlur = 1
		#alternativeSortingField = sorting desc
		wrap = <ul>|</ul>
		NO {
			allWrap =
			linkWrap = <li class="cn existing">|</li> || <li class="en 
existing">|</li> || <li class="de existing">|</li>
			doNotLinkIt = 0
			stdWrap.setCurrent = 中文 || english || deutsch
			stdWrap.current = 1
			stdWrap {
				typolink {
					addQueryString = 1
					#the rest is just testing
					#parameter.data = page:uid
					#addQueryString.exclude = L
					#addQueryString.method = GET
					#additionalParams.cObject = TEXT
					#additionalParams.cObject.value = TEXT
					#additionalParams = &L=1
					#additionalParams.cObject.data = GPvar : tx_ttnews|tt_news
					#additionalParams.cObject.wrap = &test|

				}
			}
		}
...

but the news-ID won`t be added as a GET param.

-- 
Ciao,
Sacha


More information about the TYPO3-project-tt-news mailing list