[TYPO3-english] Language Menu : help
Nicola Cerchiari
nicola.cerchiari at gmail.com
Fri Jul 29 09:10:06 CEST 2011
Hi Stefano,
there's some specific reason why U would like to write your own typoscript?
Cause I know an extension that works pretty good and does exactly what you
are trying to achieve, maybe you should give it a try or a look for
inspiration: sr_language_menu
Bests,
2011/7/29 Stefano <denebola75 at yahoo.it>
> Hi all.
>
> I'm new in typo3, and i read many manuals about typoscript :
>
> I'm buliding a new site , that need 2 languages : italian and english.
>
> I have created the "one-tree-fits-all-languages" tree, accordingly to this
> tutorial
>
> http://typo3.org/documentation/tips-tricks/multi-language-sites-in-typo3/
>
> I need to write a typoscript code that create a language menu that shows
> only the exisiting language page (a page that is not translated in one of
> two language doesn't appear in menu)
>
> I wrote this typoscript code :
>
> ## menu1livello [BEGIN] ##
> lib.menu1livello = HMENU
> ##includeNotInMenu=1
> lib.menuprimolivello.entryLevel=-1
> lib.menuprimolivello.special=language
> lib.menuprimolivello.special.value = 0,1
>
> lib.menu1livello.1 = TMENU
> lib.menu1livello.1.NO {
> noLink = false;
> allWrap = <li class="livello1">|</li>
> }
>
> lib.menu1livello.1.ACT = 1
> lib.menu1livello.1.ACT {
> allWrap = <li class="livello1selezionato">|</li>
> }
>
> lib.menu1livello.1.CUR = 1
> lib.menu1livello.1.CUR {
> allWrap = <li class="livello1selezionato">|</li>
> }
>
> lib.menu1livello.1.USERDEF1 = 1
> lib.menu1livello.1.USERDEF1 {
> allWrap =
> doNotLinkIt = 1
> }
>
> But there is something that is doesn't wrote correctly
>
> Anyone could help me?
>
> Any help will be appreciated.
>
> Thanks in advance
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list